描述错误:
D:VCxxxssdt3>build
BUILD: Compile and Link for x86BUILD: Loading d:winddk7600.16385.1uild.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Fri Nov 22 16:04:40 2013
BUILD: Examining d:vcxxxssdt3 directory for files to compile.
d:vcxxxssdt3 Invalidating OACR warning log for 'root:x86chk'
BUILD: Saving d:winddk7600.16385.1uild.dat...
BUILD: Compiling and Linking d:vcxxxssdt3 directory
Configuring OACR for 'root:x86chk' - <OACR on>
_NT_TARGET_VERSION SET TO WINXP
Linking Executable - sysi386sys.sys
1>errors in directory d:vcxxxssdt3
1>d:vcxxxssdt3ufferoverflowk.lib(gs_support.obj) : error LNK2019: unresolve
d external symbol _DriverEntry@8 referenced in function _GsDriverEntry@8
1>d:vcxxxssdt3sysi386sys.sys : error LNK1120: 1 unresolved externals
BUILD: Finish time: Fri Nov 22 16:04:42 2013
BUILD: Done
修改错误方法 :
1
extern "C"
DriverEntry
2.
还有一种方法是改成.c文件 //不提倡 因为C文件需要全部声明在前面 不方便
DriverEntry
2.
还有一种方法是改成.c文件 //不提倡 因为C文件需要全部声明在前面 不方便