c++ - Precompiled header files: What flags when?
- Scott Michel (11/11) Oct 06 2004 I have no problems generating a precompiled header and the resulting
- Arjan Knepper (8/24) Oct 07 2004 Here is a sample of what I useally do:
- Scott Michel (4/8) Oct 07 2004 Tried this out and just got a "Internal error: cgobj 3101". I'll have to...
I have no problems generating a precompiled header and the resulting .sym and .obj files. The question I have is which "-H" flag to use in order to get DMC to read the precompiled header: -Hbuild\somefile.sym (doesn't seem right) -H (compiler groans) -HDbuild -Hsomefile.sym (dunno if this is right) -HIsomefile.sym (compiler groans) In most of my experimentation, "-HD" is totally broken, e.g. -HDbuild -HFsomefile.sym places somefile.sym and somefile.obj in the current directory. Any clues?
Oct 06 2004
Scott Michel wrote:I have no problems generating a precompiled header and the resulting .sym and .obj files. The question I have is which "-H" flag to use in order to get DMC to read the precompiled header: -Hbuild\somefile.sym (doesn't seem right) -H (compiler groans) -HDbuild -Hsomefile.sym (dunno if this is right) -HIsomefile.sym (compiler groans) In most of my experimentation, "-HD" is totally broken, e.g. -HDbuild -HFsomefile.sym places somefile.sym and somefile.obj in the current directory. Any clues?Here is a sample of what I useally do: ('stdhac.h' is the headerfile to precompile) creating: -HF.\RELEASE\stdhac.SYM -o.\RELEASE\stdhac.PCO ..\stdhac.h using it: -H -HD.\RELEASE -HO- to use -HI you probably need to do :-H -HI.\<PATH>\PRECHFILE.PCO Hope this helps, Arjan
Oct 07 2004
Arjan Knepper wrote:creating: -HF.\RELEASE\stdhac.SYM -o.\RELEASE\stdhac.PCO ..\stdhac.h using it: -H -HD.\RELEASE -HO- to use -HI you probably need to do :-H -HI.\<PATH>\PRECHFILE.PCOTried this out and just got a "Internal error: cgobj 3101". I'll have to go and reduce the code down to something reproducable... :-( -scooter
Oct 07 2004