This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: mno_cygwin gcc 3.2
- From: Max Bowsher <maxb at ukf dot net>
- To: denis dot dupeyron at st dot com,cygwin at cygwin dot com
- Date: Wed, 20 Nov 2002 10:24:03 +0000
- Subject: Re: mno_cygwin gcc 3.2
>
>Subject: Re: mno_cygwin gcc 3.2
> From: "Denis Dupeyron" <denis.dupeyron@st.com>
> Date: Wed, 20 Nov 2002 10:44:13 +0100
> To: <cygwin@cygwin.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/