lop40
September 20th, 2004, 10:04 PM
Hi, all. I am a learner.
I use the sample code of WRITING WINDOWS WDM DEVICE DRIVERS, which is the first sample.
At first, I found the header 'PrintDebug.h' had not got the declarations of those functions:
////////////////////////////////////////////
.....
void DebugPrintMsg(char* Msg);
.....
////////////////////////////////////////////
I found them in 'PrintDebug.c', and I think myself clever to move them into 'PrintDebug.h', but the problem then rose:
////////////////////////////////////////////
.....
init.obj : error LNK2019: unresolved external symbol "void __stdcall DebugPrintMsg(char *)" (?DebugPrintMsg@@YGXPAD@Z) referenced in function _DriverEntry@8
.....
////////////////////////////////////////////
what could I do?
thanks for your precious time
I use the sample code of WRITING WINDOWS WDM DEVICE DRIVERS, which is the first sample.
At first, I found the header 'PrintDebug.h' had not got the declarations of those functions:
////////////////////////////////////////////
.....
void DebugPrintMsg(char* Msg);
.....
////////////////////////////////////////////
I found them in 'PrintDebug.c', and I think myself clever to move them into 'PrintDebug.h', but the problem then rose:
////////////////////////////////////////////
.....
init.obj : error LNK2019: unresolved external symbol "void __stdcall DebugPrintMsg(char *)" (?DebugPrintMsg@@YGXPAD@Z) referenced in function _DriverEntry@8
.....
////////////////////////////////////////////
what could I do?
thanks for your precious time