// JP opened flex table

Click to See Complete Forum and Search --> : about 'unresolved external symbol'


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

kathir4
September 22nd, 2004, 09:36 PM
Dear friend

This type of error will occur due to library functin. USING MSDN or hrlp u found out the library function and include them using project , setting and linker in the menu

//JP added flex table