阅读:984回复:2
build时碰到的问题,怎么处理啊
Current DDK Directory = E:\\NTDDK
Building for i386 ******Configuration: hellowdm - Win32 Checked ************* Invalid keyboard code specified New or updated MSVC detected. Updating DDK environment.... Setting environment for using Microsoft Visual C++ tools. Starting dirs creation...Completed. BUILD: Object root set to: ==> objchk BUILD: /i switch ignored BUILD: Compile and Link for i386 BUILD: Loading E:\\NTDDK\\build.dat... BUILD: Computing Include file dependencies: BUILD: e:\\nuance\\v8.0.0\\include\\dispatcher-interfaces.hpp(121): e:\\nuance\\v8.0.0\\include\\dispatcher-interfaces.hpp - invalid include statement: #include <iostream.h> // cout BUILD: e:\\progra~1\\micros~3\\vc98\\include\\exdisp.odl(31): e:\\progra~1\\micros~3\\vc98\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: e:\\progra~1\\micros~3\\vc98\\include\\vidsvr.odl(16): e:\\progra~1\\micros~3\\vc98\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: Examining e:\\dn2400c\\win200~1 directory for files to compile. e:\\dn2400c\\win200~1 e:\\dn2400c\\win200~1 - 1 source files (327 lines) BUILD: Saving E:\\NTDDK\\build.dat... BUILD: Compiling e:\\dn2400c\\win200~1 directory Compiling - hellowdm.cpp for i386 BUILD: Linking e:\\dn2400c\\win200~1 directory Linking Executable - e:\\ntddk\\lib\\i386\\hellowdm.sys for i386 link() : error LNK2001: unresolved external symbol _DriverEntry@8 e:\\ntddk\\lib\\i386\\hellowdm.sys() : error LNK1120: 1 unresolved externals BUILD: Done 1 file compiled - 327 LPS 1 executable built - 2 Errors Tool returned code: 0 |
|
沙发#
发布于:2004-01-06 16:57
1)你是不是在.cpp中call c语言函数,没有加extern \"c\" 2)你定义的函数在类外部, 3)函数的定义不一致,(通常在.def,与具体的函数中) ,,,,, 具体的可以参看MSDN, 不知这样的回答对你有没有帮助, |
|
板凳#
发布于:2004-02-01 15:01
可能没有包含lib文件,或者环境变量设置不对,后者可能性大一些
|
|