delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Thu, 5 Apr 2001 21:52:38 +0200 (MET DST) |
From: | Dmitrii Pasechnik <dima AT cs DOT uu DOT nl> |
To: | Latyr Jean-Luc FAYE <webmaster AT faye DOT cjb DOT net> |
Cc: | Cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: Rep: Re: Compiling with Borland C but not with Cygwin !!! |
In-Reply-To: | <02cb01c0be05$38cac2a0$99face88@dcu.ie> |
Message-ID: | <Pine.GSO.4.21.0104052149430.18328-100000@sunshine.cs.uu.nl> |
X-Org: | Department of Computer Science; Utrecht University |
X-Org: | P.O. Box 80.089; 3508 TB Utrecht; The Netherlands. |
X-Org: | phone: +31-30-2531454; telefax: +31-30-2513791 |
MIME-Version: | 1.0 |
On Thu, 5 Apr 2001, Latyr Jean-Luc FAYE wrote: >A few more questions on this behaviour. >I'm a Cygwin's newbie (3 days now) and I would like to know what was wrong. >I mean why >gcc -otest.exe file.c is OK this happens to be OK on Cygwin, as for some unknown to me reason libcygwin has all of libm included, and libcygwin is linked by default. >gcc -otest.exe file.c -lm is OK >gcc -lm -otest.exe file.c -lm is NOT OK > that's I guess because of the above... >I am more surprised by the fact that >gcc -otest.exe file.c is OK because I am using math.h in file.c and I learnt >at school that when I use math.h I should put -lm in the compilation line > -- Dmitrii Pasechnik e-mail: d DOT pasechnik AT twi DOT tudelft DOT nl http://ssor.twi.tudelft.nl/~dima/ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |