This is the mail archive of the cygwin@sourceware.cygnus.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]

undefined references when compiling with -mno-cygwin


Title: undefined references when compiling with -mno-cygwin

I am compiling a medium/large sized c++ program using the -mno-cygwin linker option.  During link I get a lot of undefined symbol references in libstdc++.a from iostream.o, streambuf.o, fileops.o, stdiostream.o, floatconv.o, and iovscanf.o.  The references are to __errno, _ctype_, and _impure_ptr.  I'm using the stl pretty heavily, but I'm not using any of cygwin's Unix API.  Seems like it should work.

Similar errors in the math library (libm.a).

I'm wondering if the lib*.a files (especially libstdc++ and the stl headers) included with the cygwin release (version 2.02.1(2)-release (i586-pc-cygwin32)) I'm using do make use of some portions of the API that are Unix specific and I therefore won't be able to compile without linking to cygwin.dll.

I didn't find anything in the FAQ or archives, so if anyone can help please let me know.

Thanks,

Jeff Boleng
boleng@rmi.net

 


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