error LNK2019: unresolve d external symbol _DriverEntry@8 referenced in function _GsDriverEntry@8

描述错误:

D:\VCxxx\ssdt3>build

BUILD: Compile and Link for x86
BUILD: Loading d:\winddk\7600.16385.1\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Fri Nov 22 16:04:40 2013
BUILD: Examining d:\vcxxx\ssdt3 directory for files to compile.
    d:\vcxxx\ssdt3 Invalidating OACR warning log for 'root:x86chk'
BUILD: Saving d:\winddk\7600.16385.1\build.dat...
BUILD: Compiling and Linking d:\vcxxx\ssdt3 directory
Configuring OACR for 'root:x86chk' -
_NT_TARGET_VERSION SET TO WINXP
Linking Executable - sys\i386\sys.sys
1>errors in directory d:\vcxxx\ssdt3
1>d:\vcxxx\ssdt3\bufferoverflowk.lib(gs_support.obj) : error LNK2019: unresolve
d external symbol _DriverEntry@8 referenced in function _GsDriverEntry@8
1>d:\vcxxxssdt3\sys\i386\sys.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文件需要全部声明在前面 不方便

转载于:https://www.cnblogs.com/zcc1414/p/3982422.html

你可能感兴趣的:(error LNK2019: unresolve d external symbol _DriverEntry@8 referenced in function _GsDriverEntry@8)