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 X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs Date: Thu, 10 Apr 2003 13:40:33 +0200 (CEST) From: Ronald Landheer-Cieslak X-X-Sender: ronald AT localhost DOT localdomain To: Lester Ingber cc: cygwin AT cygwin DOT com Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"? In-Reply-To: <20030410074329.A9559@ingber.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 10 Apr 2003, Lester Ingber wrote: > Thanks for your reply. > > There must be some math library? This is needed for > #include > in all C packages I've seen. How can simple functions like sqrt() > be calculated? > > Lester "Have a go at it (tm)": just try compiling it without the -lm - I'll bet it will just make your headache go away. AFAIK, I've never used -lm on MinGW, even for projects that needed it on other platforms rlc > 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 > : To: Lester Ingber > : 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 > : > > -- 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/