Error LNK2001 in vista64.

We install wdk for vista64, then biuld the driver use “Windows Vista and windows server Longhorn x64 checked build environment”, there have some link error.If there is some configure we have not setted?
Below is the compile information:

WARNING: x64 Native compiling isn’t supported. Using cross compilers.
C:\WinDDK\6000>e:

E:\>cd E:\code\VTC_USBD_X

E:\code\VTC_USBD_X>buildallusbdebug
E:\code\VTC_USBD_X
.\objchk\i386

=== Building USBD_Modem driver…

OSR DDKBUILD.BAT V5.1 - Copyright 1995-2010 OSR, Open Systems Resources, Inc.
WXP 32 BIT BUILD using WXP DDK
The system cannot find the path specified.
build in directory . with arguments (basedir c:\WINDDK\2600)
run build -Ze -MI for chk version in .
BUILD: Compile and Link for AMD64
BUILD: Start time: Sat Dec 01 06:05:51 2007
BUILD: Examining e:\code\vtc_usbd_x\usbd_modem directory for files to compile.
BUILD: Compiling and Linking e:\code\vtc_usbd_x\usbd_modem directory
Precompiling - viausbmodem.h
Compiling - kqueue.c
Compiling - init.c
Compiling - pnp.c
Compiling - usbrelative.c
Compiling - counterrelative.c
Compiling - irpoprelative.c
Compiling - ioctl.c
Compiling - circlebuffer.c
Compiling - readwrite.c
Compiling - open.c
Compiling - power.c
Compiling - busbdbg.c
Compiling - wmi.c
Linking Executable - objchk_wlh_amd64\amd64\viausbmodem.sys
errors in directory e:\code\vtc_usbd_x\usbd_modem
e:\code\vtc_usbd_x\usbd_modem\kqueue.obj : error LNK2001: unresolved external sy
mbol __imp_KeInitializeSpinLock
e:\code\vtc_usbd_x\usbd_modem\init.obj : error LNK2001: unresolved external symb
ol __imp_KeGetCurrentIrql
e:\code\vtc_usbd_x\usbd_modem\readwrite.obj : error LNK2001: unresolved external
symbol KeTickCount
e:\code\vtc_usbd_x\usbd_modem\objchk_wlh_amd64\amd64\viausbmodem.sys : error LNK
1120: 3 unresolved externals
BUILD: Finish time: Sat Dec 01 06:05:52 2007
BUILD: Done

17 files compiled
1 executable built - 4 Errors
=============== build warnings ======================

build complete
building browse information files
ddkbuild complete

Thank you!

Did you do as suggested? If not, try your page on myspace.com or maybe
facebook since you repost without indicating you have tried the solution
suggested by Martin and haven’t provided the answers to the questions you
were asked.

wrote in message news:xxxxx@ntdev…
> We install wdk for vista64, then biuld the driver use “Windows Vista and
> windows server Longhorn x64 checked build environment”, there have some
> link error.If there is some configure we have not setted?
> Below is the compile information:
> ---------------------------------------------------------------------------------
> WARNING: x64 Native compiling isn’t supported. Using cross compilers.
> C:\WinDDK\6000>e:
>
> E:>cd E:\code\VTC_USBD_X
>
> E:\code\VTC_USBD_X>buildallusbdebug
> E:\code\VTC_USBD_X
> .\objchk\i386
> ===========================================================================
> === Building USBD_Modem driver…
> ===========================================================================
> OSR DDKBUILD.BAT V5.1 - Copyright 1995-2010 OSR, Open Systems Resources,
> Inc.
> WXP 32 BIT BUILD using WXP DDK
> The system cannot find the path specified.
> build in directory . with arguments (basedir c:\WINDDK\2600)
> run build -Ze -MI for chk version in .
> BUILD: Compile and Link for AMD64
> BUILD: Start time: Sat Dec 01 06:05:51 2007
> BUILD: Examining e:\code\vtc_usbd_x\usbd_modem directory for files to
> compile.
> BUILD: Compiling and Linking e:\code\vtc_usbd_x\usbd_modem directory
> Precompiling - viausbmodem.h
> Compiling - kqueue.c
> Compiling - init.c
> Compiling - pnp.c
> Compiling - usbrelative.c
> Compiling - counterrelative.c
> Compiling - irpoprelative.c
> Compiling - ioctl.c
> Compiling - circlebuffer.c
> Compiling - readwrite.c
> Compiling - open.c
> Compiling - power.c
> Compiling - busbdbg.c
> Compiling - wmi.c
> Linking Executable - objchk_wlh_amd64\amd64\viausbmodem.sys
> errors in directory e:\code\vtc_usbd_x\usbd_modem
> e:\code\vtc_usbd_x\usbd_modem\kqueue.obj : error LNK2001: unresolved
> external sy
> mbol imp_KeInitializeSpinLock
> e:\code\vtc_usbd_x\usbd_modem\init.obj : error LNK2001: unresolved
> external symb
> ol
imp_KeGetCurrentIrql
> e:\code\vtc_usbd_x\usbd_modem\readwrite.obj : error LNK2001: unresolved
> external
> symbol KeTickCount
> e:\code\vtc_usbd_x\usbd_modem\objchk_wlh_amd64\amd64\viausbmodem.sys :
> error LNK
> 1120: 3 unresolved externals
> BUILD: Finish time: Sat Dec 01 06:05:52 2007
> BUILD: Done
>
> 17 files compiled
> 1 executable built - 4 Errors
> =============== build warnings ======================
>
>
> build complete
> building browse information files
> ddkbuild complete
> ---------------------------------------------------------------------------------
>
> Thank you!
>

Hi David,
Sorry, I can’t find Martin’s suggestion.How can I try my page on myspace.com?
The repost you mentioned is the thread"Can driver use in Vista64,if dose not pass WHQL? "? In that thread I tried the solution suggested by Maxim,Tim and MM.
I think the title of this thread is better to my problem, so I post this new thread.
Thanks!
qihua

Hi David,
I find that Martin is MM. :slight_smile:
Yes, I had tried the solution suggested by Matin. And the link error is still exits.
The information is in the thread “Can driver use in Vista64,if dose not pass WHQL?”,the web address is : http://www.osronline.com/showthread.cfm?link=121098
Thanks!
qihua