delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/10/07:36:40

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
Date: Thu, 10 Apr 2003 07:43:29 -0400
From: Lester Ingber <ingber AT ingber DOT com>
To: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
Message-ID: <20030410074329.A9559@ingber.com>
Reply-To: Lester Ingber <ingber AT ingber DOT com>
References: <20030410060338 DOT GA344 AT ingber DOT com> <Pine DOT LNX DOT 4 DOT 44 DOT 0304101208180 DOT 17056-100000 AT localhost DOT localdomain>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <Pine.LNX.4.44.0304101208180.17056-100000@localhost.localdomain>; from ronald@landheer.com on Thu, Apr 10, 2003 at 12:14:05PM +0200
X-URL-ALT: http://www.alumni.caltech.edu/~ingber/

Ronald:

Thanks for your reply.

There must be some math library?  This is needed for
#include <math.h>
in all C packages I've seen.  How can simple functions like sqrt()
be calculated?

Lester

On Thu, Apr 10, 2003 at 12:14:05PM +0200, Ronald Landheer-Cieslak wrote:
: Date: Thu, 10 Apr 2003 12:14:05 +0200 (CEST)
: From: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
: To: Lester Ingber <ingber AT ingber DOT com>
: cc: cygwin AT cygwin DOT com
: Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
: In-Reply-To: <20030410060338 DOT GA344 AT ingber DOT com>
: 
: On Thu, 10 Apr 2003, Lester Ingber wrote:
: [snip]
: > gcc -shared -mno-cygwin -o asadll.dll -Wl,--out-implib=libasadll.dll.a
: > -Wl,--export-all-symbols -Wl,--export-dynamic -Wl,--add-stdcall-alias
: > -Wl,--enable-auto-import -Wl,--whole-archive asa.o asa_usr.o
: > asa_usr_cst.o -Wl,--no-whole-archive -lm
:                                        ^^^
: See if this is not something linked with Cygwin 
: 
: [snip]
: 
: AFAIK, there is no libm.a in the MinGW pack, so the libm.a you're pulling 
: in links you to something linked to Cygwin.. you'll have to get rid of it.
: 
: HTH
: 
: rlc
: 

-- 
 Prof. Lester Ingber  ingber AT ingber DOT com  ingber AT alumni DOT caltech DOT edu
 www.ingber.com                     www.alumni.caltech.edu/~ingber

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