-mno-cygwin and c++ stl... progress?
Tue Jan 30 16:02:00 GMT 2001
On Tue, 30 Jan 2001, Christopher Abbey wrote:
> /jikes/cvs/msvcbld/src $ make
> /usr/local/mingw/bin/g++ -DHAVE_CONFIG_H -I. -I../../jikes/src -I. -g
> -O2 -c -o ast.o ../../jikes/src/ast.cpp
> In file included from ..\..\jikes\src\platform.h:205,
> from ..\..\jikes\src\ast.h:14,
> from ../../jikes/src/ast.cpp:11:
> ..\..\jikes\src\tuple.h: In method `void Tuple<T>::AllocateMoreSpace()':
> ..\..\jikes\src\tuple.h:55: unknown escape sequence `\.'
> ..\..\jikes\src\tuple.h:55: unknown escape sequence `\j'
I need to see the pre-processed file to know what is really happening,
but since I don't have that, I'll guess. The problem I believe is the
following: cpp produces #line directives with '\\' in the include file
names for Mingw, and C++ parser is choking due to a bug. I believe I
fixed most of these in gcc-2.95.2-1 for Mingw, but users have reported
at least one case where it still *may* happen.
To test it out this hypothesis, try the following: Repeat the compile
command above with -save-temps option added, and that will create file
called ast.ii. Edit ast.ii and replace all '\\' in filenames (in all
the # and #line directives) with '/', and then run the compile command
on the .ii instead of the .cpp file. If it works, you've found the bug.
If not, send me the preprocessed file along with compiler version (gcc
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin