Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Latyr Jean-Luc FAYE Cc: Cygwin Subject: Re: Rep: Re: Compiling with Borland C but not with Cygwin !!! In-Reply-To: <02cb01c0be05$38cac2a0$99face88@dcu.ie> Message-ID: 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 Content-Type: TEXT/PLAIN; charset=US-ASCII 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