gpt4 book ai didi

c++ - 如何在 VS 中重建预编译头文件?

转载 作者:行者123 更新时间:2023-11-28 01:47:31 26 4
gpt4 key购买 nike

它是必需的,因为我删除了我的 .idb 文件并且错误消息告诉我重建预编译的头文件。

最佳答案

预编译头文件生成.pdb文件,同时根据documentation .idb 文件是:

The state file, containing dependency information between source files and class definitions, which can be used by the compiler during minimal rebuild and incremental compilation. Use the /Fd compiler option to specify the name of the .idb file. See /Gm (Enable Minimal Rebuild) for more information.

要重建项目,您可以转到主菜单 -> Build -> Rebuild。要仅重建预编译头文件,您可以在 Solution Explorer 中为预编译头文件 .cpp 文件打开上下文菜单,然后选择 Compile 项。

关于c++ - 如何在 VS 中重建预编译头文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44341078/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com