环境:VC
执行:编译程序
问题描述:Cannot open precompiled header file: 'Debug/****.pch': No such file or directory
我的解决方案
可以使用右键点击项目工程中的该cpp文件,选择setting,在c/c++栏,选择PreCompiled headers,然后设置第一选项,选择不使用预编译头,解决这个问题。 ——已验证有效
解决VC编译预编译头错误
本文介绍了解决VC环境下编译程序时遇到的“Cannot open precompiled header file”错误的方法。通过调整项目的预编译头设置,具体操作是在对应cpp文件的设置中禁用预编译头,从而成功解决了编译错误。
环境:VC
执行:编译程序
问题描述:Cannot open precompiled header file: 'Debug/****.pch': No such file or directory
我的解决方案
可以使用右键点击项目工程中的该cpp文件,选择setting,在c/c++栏,选择PreCompiled headers,然后设置第一选项,选择不使用预编译头,解决这个问题。 ——已验证有效
2369
1316

被折叠的 条评论
为什么被折叠?