The notes in MicroStationAPI.h include the following suggestion:
If you have more than one source file linked into a single .dll, you should definitely use precompiled header files.
How do we tell C++ to use a precompiled header in our BMake file?The only MDL example project that has a possible precompiled header StdAfx.h is ToolExample, but doesn't use it (it's not mentioned in the bmake file).
Regards, Jon Summers LA Solutions
Hi Jon,
You need to define CCPchOpts in the .mke before the compiling statement (preferably near where the compile options are specified) as follows :
CCPchOpts = -Yc"StdAfx.h" -Fp$(o)stdafx.pch
You can change the name of StdAfx to whatever you like.
Thanks,
Mathieu
Mathieu: You need to define CCPchOpts …
You need to define CCPchOpts …
Merci bien!
I've added your tip about CCPchOpts to our website.