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 Date: Thu, 10 Apr 2003 07:45:35 -0400 From: Lester Ingber To: cygwin AT cygwin DOT com Subject: Fixed: Re -mno-cygwin and "undefined reference to `_impure_ptr'"? Message-ID: <20030410114535.GA1880@ingber.com> Reply-To: Lester Ingber Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-URL-ALT: http://www.alumni.caltech.edu/~ingber/ Danny: Thanks. That did it. Lester +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= * From: Danny Smith * To: ingber at ingber dot com * Cc: cygwin at cygwin dot com * Date: Thu, 10 Apr 2003 19:57:44 +1000 (EST) * Subject: Re -mno-cygwin and "undefined reference to `_impure_ptr'"? 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 -- 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/