This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
- From: Ronald Landheer-Cieslak <ronald at landheer dot com>
- To: Lester Ingber <ingber at ingber dot com>
- Cc: cygwin at cygwin dot com
- Date: Thu, 10 Apr 2003 14:58:09 +0200 (CEST)
- Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
On Thu, 10 Apr 2003, Lester Ingber wrote:
> Under ASA_DLL, a complaint still is made that it cannot find
> cygwin1.dll?
Which means you still linked with the DLL. Did you do what Danny Smith
told you to do (i.e. compile everything with -mno-cygwin) and are you
*sure* that you're not linking in any other Cygwin-related libraries (most
notably libcygwin.a, but you may be linking them in through something
else). libg.a is an example of a symlink to libcygwin.a - you're not
linking to that, are you?
Just run cygcheck on your DLL and see if it depends on cygwin1.dll. As
long as that is the case, you're linking with something that needs Cygwin
- find out what it is and get rid of it :)
You could always just download MinGW (from www.mingw.org) and try
compiling in the MSYS environment. MSYS is a Cygwin fork but the mingw
compiler doesn't stick in the cygwin dependencies by default.
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/