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

Niall Douglas s_sourceforge at nedprod.com
Fri Oct 3 05:07:05 CEST 2003


-----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.

I know you can tell MSVC to stop after seeing a certain include, but 
pyste doesn't order them in a particularly predictable fashion I've 
found, so thus you can be missing bits out.

Cheers,
Niall





-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2

iQA/AwUBP3zn2sEcvDLFGKbPEQKu1QCg1SceAedN234mceNdOos1maj1Ed0AoN0l
ulkziYbEkcVbYKION2tVtoXi
=VcYS
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list