#include <.string>

Mumit Khan khan@xraylith.wisc.edu
Tue Dec 29 11:04:00 GMT 1998


On 1998年12月29日 JSONCRAIG@aol.com wrote:
> Did you use the -mno-cygwin flag when compiling? I found there are some
> problems with that and the std C++ libraries that give you a
> STATUS_ACCES_VIOLATION. Hope this helps a bit,
>
Yes, it's a problem with the -mno-cygwin flag and mingw32 alloc.h file,
which gets included instead of STL alloc.h when compiling. Here's the
fix: Dump the mingw32 alloc.h, which is useless now, and even MS has
dropped it in the newer VC releases (since 2.0?).
 $ cd /cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/mingw32]
 $ mv alloc.h mingw_alloc.h
Now, it should work again. It doesn't happen with mingw32 egcs
distribution since there the C++ include directory is searched *before*
the C ones, but -iwithprefixbefore changes that order. 
This way of running GCC is subtly broken unfortunately, but since I have 
no better solution at the moment, let's just dump alloc.h.
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /