Re: Building a driver with Visual Studio 6: linking p roblem

We got a winner: Yep, that solved my problem! Thanks…

Fred

-----Original Message-----
From: Alexei Jelvis [mailto:xxxxx@rogers.com]
Sent: Monday, June 16, 2003 6:49 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Building a driver with Visual Studio 6: linking
problem

Driver.obj : error LNK2001: unresolved external symbol “unsigned long
__cdecl DbgPrint(char *,…)” (?DbgPrint@@YAKPADZZ)

If you are writing C++ code (.cpp extensions of files assumes that C++
compiler is invoked) you need to enclose all DDK headers in brakets:
extern “C”
{
#include “ntddk.h”
}

Alexei.


You are currently subscribed to ntdev as: xxxxx@dell.com
To unsubscribe send a blank email to xxxxx@lists.osr.com