开发者

Rebuild all but precompiled headers in Visual Studio

How wo开发者_如何学Pythonuld it be possible to configure VC++/Solution/Projects to rebuild all but the precompiled headers?


At first i thought it might be possible by initially building your project (Creating the PCH file), then going into the stdafx.cpp properties (the file that is typically the one that causes the PCH to get built) and setting it to be excluded from the build.

But that isn't workable because the PDB file is linked to the pre-compiled file internally - if you then clean/rebuild your project (after excluding the stdafx.cpp) the PDB will get recreated and then the compiler will complain that the PCH doesn't match the PDB build.

Perhaps you could explain why it is you want to do this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜