Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
From: Lester Ingber <[email-masked]>
To: Ronald Landheer-Cieslak <[email-masked]>
Cc: [email-masked]
Date: Thu, 10 Apr 2003 07:43:29 -0400

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 <[email-masked]>
: To: Lester Ingber <[email-masked]>
: cc: [email-masked]
: Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
: In-Reply-To: <[email-masked]>
: 
: 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  [email-masked]  [email-masked]
 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/