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 Message-ID: <20030410095744.93813.qmail@web21410.mail.yahoo.com> Date: Thu, 10 Apr 2003 19:57:44 +1000 (EST) From: =?iso-8859-1?q?Danny=20Smith?= Subject: Re -mno-cygwin and "undefined reference to `_impure_ptr'"? To: ingber AT ingber DOT com Cc: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit From: Lester Ingber To: cygwin at cygwin dot com Date: Thu, 10 Apr 2003 02:03:38 -0400 > ... > 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 > Creating library file: libasadll.dll.a > asa.o(.text+0xede):asa.c: undefined reference to `_impure_ptr' > ... > > Can anyone suggest what to do about "undefined reference to > `_impure_ptr'"? I want to use these DLL's in another software package, > without having to register (updated) copies of cygwin1.dll, etc. Compile your objects (asa.o, etc ) with -mno-cygwin. Danny > > Thanks. > > Lester > > http://mobile.yahoo.com.au - Yahoo! Mobile - Check & compose your email via SMS on your Telstra or Vodafone mobile. -- 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/