关于stdafx.h在我的编译器丢失(mingw32在windows上) [英] About stdafx.h missing in my compiler(mingw32 on windows)
问题描述
我只有一个快速问题。我注意到,我没有stdafx.h在我的编译器(mingw32在Windows上)
I just have a quick question. I've noticed that I don't have stdafx.h in my compiler(mingw32 on windows)
我应该有它吗?
感谢阅读
编辑:ok这里是我的当前生成日志一旦我取出所有的包括stdafx.h
ok here is my current build log once I took out ALL of the includes of stdafx.h
推荐答案
阅读这篇维基百科文章。我链接的段落和下面的段落(mingw32使用GCC)。
Read this wikipedia article. The paragraph I linked and the paragraph below it (mingw32 uses GCC).
http://en.wikipedia.org/wiki/Precompiled_header#stdafx.h
自 stdafx.h
包含最常见的标题,我将删除 #include stdafx.h
的每个实例,并尝试编译。如果得到某个函数缺失的编译错误,请添加相应的标题。冲洗并重复。
Since stdafx.h
contains the most common headers I would remove every instance of #include stdafx.h
and try to compile. If you get compile errors that a certain function is missing, add the appropriate header. Rinse and repeat.
这篇关于关于stdafx.h在我的编译器丢失(mingw32在windows上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!