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 |
Message-ID: | <02cb01c0be05$38cac2a0$99face88@dcu.ie> |
Reply-To: | "Latyr Jean-Luc FAYE" <webmaster AT faye DOT cjb DOT net> |
From: | "Latyr Jean-Luc FAYE" <Latyr DOT Faye2 AT mail DOT dcu DOT ie> |
To: | "Cygwin" <cygwin AT cygwin DOT com> |
References: | <NFBBJAJICAKJPMMKDAGBEENPCBAA DOT wpd AT delcomsys DOT com> |
Subject: | Rep: Re: Compiling with Borland C but not with Cygwin !!! |
Date: | Thu, 5 Apr 2001 20:18:39 +0100 |
Organization: | Dublin City University |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
> Don't place -lm at the beginning of the command line. Place it at the end. > Thanks folks it works. 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 gcc -otest.exe file.c -lm is OK gcc -lm -otest.exe file.c -lm is NOT OK 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 Regards Jean-Luc --- Latyr Jean-Luc FAYE http://faye.cjb.net -- 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 |