So for all who follow me: The following documents how to set up C++ with
To quote it:
- Install the latest cygwin
[mingw-runtime package is not necessary]
- Download the mingw gcc package, find libstdc++.a in it, and put that
- Copy /usr/include/g++-3 to /usr/include/mingw/g++-3
[there was some discussion about backward compatibility for seek in
---- dll linking
To add my personal experience:
copy mingw's libstdc++.dll into /usr/local/bin (perhaps
/usr/lib/mingw/bin would be more accurate -- if in your path)
covers most problems.
---- static linking
there is an old problem with libstdc++.a:
reference to `_imp___HUGE_dll'
This is not a problem if you link to the .dll and I suspect its an error
with mingw's build (_imp___HUGE_dll is a relict of the crtdll era).
I have once found it somewhere in a header but I can't find it any
----------------- Building shared libraries
To me it looks like (problem in
http://sources.redhat.com/ml/cygwin/2001-03/msg01708.html ) that the
spec file should have mingw's path prepended to dllcrt2.o and crt2.o!
Does anybody know how to build libstdc++ ? Well I tried to download the
sources ... but they did not compile out of the box.
Does MingW have a CVS repository?
CGF of RH asking for volunteers for C++ :
Some historic comments: