搞了一天没解决,包含头文件出错!
害我搞了一天,还没搞定,头痛啊!!
现有一个DEMO,它在.cpp中包含了
#include <olmem.h>
#include <olerrors.h>
#include <oldaapi.h>
编译通过,我自己写也了个程序,也包含以上3个头文件,编译出错: fatal error C1083: Cannot open include file: 'olmem.h': No such file or directory.
但是我写的程序的目录结构和demo是一样的,为什么我的出错呢?而且demo的External Dependencies下已出现了所要包含的头文件,我自己写的External Dependencies下只有一个basetsd.h.
所以我怀疑设置不对,在demo下,把工程--设置--c/c++ project options下的信息拷到我写的程序下:/nologo /MLd /W3 /Gm /GX /ZI /Od /I "$(DA_SDK)\Include" /I "..\..\Include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp".\WinDebug/contad32.pch" /YX /Fo".\WinDebug/" /Fd".\WinDebug/" /FD /c
结果External Dependencies下出现了所有的要包含的头文件了,但是出现另外错误:Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/9999999999.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
所以可能还是设置得不对,请大家指教。