|
|
要用DirectDraw...需把ddutil.h,ddutil.cpp,dxutil.h,dxutil.cpp加入到工程中,加入后试对ddutil.cpp和dxutil.cpp单独进行编释,报错:
d:\vc++\dx\dxutil.cpp(1122) : fatal error C1010: unexpected end of file while looking for precompiled header directive
ddutil.cpp
d:\vc++\dx\ddutil.cpp(1032) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
在网上找处理办法,有人说缺少包含stdafx.h文件,在dxutil.cpp中包含了该文件,单独编释dxutil.cpp时不报错了...
但在dxutil.cpp中包含了stdafx.h文件,报错行就多达100多个...去掉报:
d:\vc++\dx\ddutil.cpp(1032) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
有人说在[Project]->[Setting]->[C/C++]->然後在 [Category] ??中??瘢?recompiled Headers ?目,然後??瘢?ot using precompiled headers 即可。
但我试了还不行,怎么办?
ddutil.cpp可是官方发布的,我没改过里面的代码呀... |
|