I am leading a large C ++ project in Visual Studio 2010 (pure C ++ / WinAPI), and recently there has been a need to use precompiled headers.
There are a couple of files that rarely change (at least once every 4 days or more) and are included everywhere. When you change their contents, you have to recompile the entire project, which can take about 15 minutes on a slow machine.
When creating a precompiled header, I encounter another problem - the #include directive of the header file must be specified in all files that exist in the project. But my project contains several open source libraries, the contents of which I don’t want to change because of the need to periodically update these libraries.
Therefore, I get C1010 errors : unexpected end of file while searching for a precompiled header. You may have forgotten to add the "#include name" directive to the source .
Perhaps there is a way to tell the environment that my precompiled header file should be included in all default files automatically? Is there a way to use precompiled headers in my case?