Headers not precompiling

Brian Dessent brian@dessent.net
Wed Jul 12 21:48:00 GMT 2006


Mark Wagner wrote:

> According to the documentation
> (http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html), creating
> a precompiled header is done by invoking GCC on the header the same
> way you'd compile a file.  So, the command line
> 
> /opt/mingw/i386-mingw32msvc/bin/gcc -fshort-wchar -xc++
> -D_MSC_VER=0x0500 -I../../PUBINC -I../NEO/NeoIncludes
> -I../NEO/NeoIncludes/ibmpc -I../NEO/NeoIncludes/ibmpc/Alone
> -I../NEO/NeoExtras TGEQWin32.h

I think you want -xc++-header, not -xc++.

Brian



More information about the Gcc-help mailing list