There's a code that includes a lot of standard library headers. The code is situated in one file, and I cannot create any other C++ source files in that project (sic). I would like to increase the performance of the build process using precompiled headers. There're two problems
- Trying to use this guide on
vector
, I've got afile format not recognized
error. What flags should I set to showgcc
that it's a header file? - There's a quote in official guide that says "Only one precompiled header can be used in a particular compilation". How do I precompile several headers at once then?
(Any batch/shell scripts appreciated too.)