delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/10/05:58:14

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
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?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
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

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
> 
> 


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/

- Raw text -


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