Re: [ntdev] LNK2001 error unresolved external symbol

Or just build the thing using the standard tools.

Mark Roddy

On Thu, Feb 25, 2010 at 12:34 PM, Tim Roberts wrote:
> Thomas Mann wrote:
>>
>> I’m new to driverprogramming.
>> I’m using Visual Studio 2008 with the VisualDDK Extension.
>> WDK,installed is WDK 7600.16385.0.
>> OS is Windows 7 Professional
>>
>> I decided to start off using the simple Toaster example shipped with
>> the WDK-installation.
>> (I got this ideal from reading a Paper)
>> I wrote the code while reading it.
>> I sort of need a working example,I can edit, before i start digging
>> deeper and try to understand it a little bit more.
>> Problem is that I get the following errors(1 beeing caused by it’s
>> precessors),which I can’t resolve.
>>
>> Fehler ? ?1 ? ?error LNK2001: unresolved external symbol
>> _WdfFunctions ? ?toaster.obj ? ?Toaster
>> Fehler ? ?2 ? ?error LNK2001: unresolved external symbol
>> _WdfDriverGlobals ? ?toaster.obj ? ?Toaster
>> Fehler ? ?3 ? ?fatal error LNK1120: 2 unresolved externals
>> e:\windriver\toaster\toaster\objchk_win7_x86\i386\Toaster.sys ? ?Toaster
>
> The implication is that VisualDDK doesn’t know about KMDF yet. ?You need
> to link with wdfdriverentry.lib.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>