Thread overview
Precompiled header files: What flags when?
Oct 06, 2004
Scott Michel
Oct 07, 2004
Arjan Knepper
Oct 07, 2004
Scott Michel
October 06, 2004
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?
October 07, 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
October 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.PCO

Tried this out and just got a "Internal error: cgobj 3101". I'll have to go and reduce the code down to something reproducable... :-(


-scooter