Jam*_*den 21 c c++ precompiled-headers visual-studio
我在C项目中使用预编译的头文件,但我们正在将.CPP文件集成到项目中.
这是错误:
Error 1 fatal error C1853: 'Debug\MuffinFactory.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)
c:\users\blake\desktop\projects\muffinfactory\source\main.cpp 1
Run Code Online (Sandbox Code Playgroud)
我们只需要在我们的项目中编译一个.CPP,但我们确实需要预编译的头来节省编译时间(Windows.h等).
我应该如何组织我的项目呢?
您可以在项目中创建两个预编译头.每个源文件都有一个属性,用于确定是否要使用预编译头,或生成预编译头 - 尝试设置两个不同的源来生成头.
归档时间: |
|
查看次数: |
30714 次 |
最近记录: |