This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Headers not precompiling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]