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]

Re: -mno-cygwin and C++


On Tue, Mar 27, 2001 at 09:22:51PM -0600, Kenton Varda wrote:
>I just updated my copy of cygwin today, and it appears that using -mno-cygwin 
>no longer works with C++.  When I try to include STL headers, I get "file not 
>found" errors.  I tried adding -I/usr/include/g++-3 to the command line, but 
>that just led to linker errors related to __errno and other symbols, 
>presumably because it tried to link against cygwin's libstdc++.a rather than 
>mingw's.

When you say "no longer works with C++", I think you actually mean "never
worked with C++".

>Next, I tried installing gcc-2.95.2-mingw-extra.tar.gz as I had to with my 
>old copy of cygwin.  With this, my only error was "undefined reference to 
>_imp___HUGE_dll".  I looked for a new version of this package for gcc-2.95.3, 
>but found none...
>
>So, what is the latest hack required to make C++ work with -mno-cygwin?  
>Perhaps, in a future version, this will work without special hacks? :/

Presumably you need a version of libstdc++ which was built with msvcrt.dll
in mind rather than dllcrt.dll.  You could probably build this yourself
from the gcc sources.  Apparently others have successfully done this.

I have repeatedly asked for volunteers to provide this for Cygwin's mingw
package but so far no one has stepped forward.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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