Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何配置 VC++/Solution/Projects 来重建除预编译头之外的所有头文件?
起初我认为可以通过最初构建您的项目(创建 PCH 文件),然后进入 stdafx.cpp 属性(通常是导致构建 PCH 的文件)并将其设置为排除从构建。
但这不可行,因为 PDB 文件在内部链接到预编译文件 - 如果您随后清理/重建您的项目(在排除 stdafx.cpp 之后),PDB 将被重新创建,然后编译器会抱怨 PCH与 PDB 构建不匹配。
也许您可以解释为什么要这样做?