Rebuild everything except precompiled headers in Visual Studio

How can I configure VC ++ / Solution / Projects to restore everything except precompiled headers?

+4
source share
1 answer

At first I thought it was possible by initially creating a project (creating a PCH file), and then go to the stdafx.cpp properties (a file that is usually the one that causes PCH to create) and setting it to be excluded from the assembly.

But this does not work because the PDB file is linked to the precompiled file inside - if you then clean / restore the project (after stdafx.cpp is thrown), the PDB will be recreated and then the compiler will complain that the PCH does not match the PDB assembly.

Perhaps you could explain why you want to do this?

+1
source

Source: https://habr.com/ru/post/1298941/


All Articles