This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Syntax errors in standard Header files?
- To: tomb at nccn dot net
- Subject: Re: Syntax errors in standard Header files?
- From: dahms at ifk20 dot mach dot uni-karlsruhe dot de
- Date: Sat, 01 Feb 1997 04:51:29 EST
- CC: gnu-win32 at cygnus dot com, dahms at ifk20 dot mach dot uni-karlsruhe dot de
Hi, you wrote:
: The reason it won't work is because your file is named 'test.c'. If you
: name it 'test.cc' or 'test.cpp' or compile with the option to select c++
: (I'm not sure what it is)
It is -xc++
: > : bash$ gcc test.c -o test.exe
: > : In file included from \DEV\CYGNUS\include\g++/iostream.h:31,
: > : from test.c:1:
: > : \DEV\CYGNUS\include\g++/streambuf.h:35: syntax error before string constant
: > : In file included from \DEV\CYGNUS\include\g++/iostream.h:31,
: > : from test.c:1:
: > : \DEV\CYGNUS\include\g++/streambuf.h:37: syntax error before `}'
Sorry, I overlooked the use of gcc. That should be g++ or gxx.
Or use the flag. But why in the hell can it *find* g++ includes, when
it's not in c++ mode? There's no -I! Were any environment variables set?
Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".