Mail Archives: cygwin/2002/11/20/05:24:10
>
>Subject: Re: mno_cygwin gcc 3.2
> From: "Denis Dupeyron" <denis DOT dupeyron AT st DOT com>
> Date: Wed, 20 Nov 2002 10:44:13 +0100
> To: <cygwin AT cygwin DOT com>
>
>> You've left out the actual error.
>> I think that -lm is an alias of -lcygwin. Get rid of it. Neither Cygwin or
>> MinGW has a seperate math library.
>
>The error was in my previous post. But thanks, the -lm was the problem. I
>left it in since gnucap being an electrical simulator it didn't seem stupid
>to link with the math library. Is there any reason for -lm to be an alias
>of -lcygwin ? I looks rather confusing.
It makes sense as far as Cygwin goes - there is no seperate math library, so just link to the library the math functions are in.
It is a problem for -mno-cygwin mode, though. Ideally, -mno-cygwin mode would know not to use /usr/lib, but I believe gcc makes it difficult to override this.
Max.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -