This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]