Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 X-Priority: 3 Date: Wed, 20 Nov 2002 10:24:03 +0000 From: Max Bowsher To: denis DOT dupeyron AT st DOT com, cygwin AT cygwin DOT com Subject: Re: mno_cygwin gcc 3.2 Message-Id: > >Subject: Re: mno_cygwin gcc 3.2 > From: "Denis Dupeyron" > Date: Wed, 20 Nov 2002 10:44:13 +0100 > To: > >> 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/