delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/20/05:24:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Priority: 3
Date: Wed, 20 Nov 2002 10:24:03 +0000
From: Max Bowsher <maxb AT ukf DOT net>
To: denis DOT dupeyron AT st DOT com, cygwin AT cygwin DOT com
Subject: Re: mno_cygwin gcc 3.2
Message-Id: <E18ES1L-00059Y-00@rose.csi.cam.ac.uk>

>
>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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019