无法在 VS2015 中禁用单个 C 文件的预编译头文件
Can't disable precompiled headers for single C file in VS2015
我试图为我的项目的 C 文件禁用预编译头文件,因为 VS2015 给我这个错误(为便于阅读而换行):
..\..\..\..\Lib\freetype2\src\autofit\autofit.c : fatal error C1853:
'Y:\obj\TwoNav_PC_15\headers\CompeTwoNav.pch' precompiled header file
is from a previous version of the compiler, or the precompiled header
is C++ and you are using it from C (or vice versa)
查看如何操作我发现 this post,
但是当我尝试在我的 Visual Studio 2015 Professional 中执行此操作时,我看不到提到的选项。
编辑:这就是我尝试select属性的方式:
这张图片是我在 select 文件属性时看到的:
我找到了使我需要的正确工具出现的解决方法...我把它留在这里作为答案,以防其他人遇到此问题。
点击文件->属性不会出现,点击项目->属性就会出现所以,一旦打开,我从树视图中选择了文件 autofit.c,最后我可以从这个文件中禁用预编译头文件!
我试图为我的项目的 C 文件禁用预编译头文件,因为 VS2015 给我这个错误(为便于阅读而换行):
..\..\..\..\Lib\freetype2\src\autofit\autofit.c : fatal error C1853:
'Y:\obj\TwoNav_PC_15\headers\CompeTwoNav.pch' precompiled header file
is from a previous version of the compiler, or the precompiled header
is C++ and you are using it from C (or vice versa)
查看如何操作我发现 this post, 但是当我尝试在我的 Visual Studio 2015 Professional 中执行此操作时,我看不到提到的选项。
编辑:这就是我尝试select属性的方式:
这张图片是我在 select 文件属性时看到的:
我找到了使我需要的正确工具出现的解决方法...我把它留在这里作为答案,以防其他人遇到此问题。
点击文件->属性不会出现,点击项目->属性就会出现所以,一旦打开,我从树视图中选择了文件 autofit.c,最后我可以从这个文件中禁用预编译头文件!