www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/10/07:45:55

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:45:35 -0400
From: Lester Ingber <ingber AT ingber DOT com>
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 <ingber AT ingber DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.4i
X-URL-ALT: http://www.alumni.caltech.edu/~ingber/

Danny:

Thanks.

That did it.

Lester

      +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
    * From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
    * 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 <ingber at ingber dot com> 
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019