[C++-sig] Pyste suggestion: MSVC precompiled headers support

Nicodemus nicodemus at globalite.com.br
Mon Oct 6 20:58:45 CEST 2003


Niall Douglas wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Basically, it's dead easy. You need to break the includes section 
>into two parts: common and specific.
>
>The common needs to be seperated from the specific with the following 
>code:
>
>#ifdef _MSC_VER
>#pragma hdrstop
>#endif
>
>This won't affect GCC, but it means on MSVC you can precompile the 
>common section (eg; boost/python.hpp) and it no longer needs to be 
>done repeatedly per file.
>

It is in CVS now (it only writes the pragma and the surrounding #ifdef 
on windows systems).

Regards,
Nicodemus.





More information about the Cplusplus-sig mailing list