I am trying to build the a sample driver but i am getting these problem

ntry.obj : error LNK2001: unresolved external symbol
__imp__IoCreateSymbolicLink
entry.obj : error LNK2001: unresolved external symbol __imp__IoCreateDevice
entry.obj : error LNK2001: unresolved external symbol __imp__IoDeleteDevice
entry.obj : error LNK2001: unresolved external symbol
__imp__IoDeleteSymbolicLink
functions.obj : error LNK2001: unresolved external symbol
__imp__MmMapLockedPagesSpecifyCache
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
release\driver.sys : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.]

though through Depends i have noticed these symbol are defined in
ntoskrnl.lib, i have includes that in project but facing same problem again
and agin.

could any buddy help me to build my first driver

thanks

--

With Regards
Alok Gupta
Visit me at http://alok.bizhat.com

"I think this will Help"

Re: I am Beginner by Don

Don
Wed Feb 16 07:20:44 CST 2005

It looks like you are either trying to build things without using the DDK
build environement, or you have somehow trashed the environment. The
reference to main, indicates the build is using inappropriate libraries.

Are you using the latest DDK, and choosing a "Build Environment" from the
start menu and building that way?


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply



"thatsalok" <thatsalok@NO_gmail.com_I_DONT_NEED_SPAM> wrote in message
news:eGZBE5BFFHA.2232@TK2MSFTNGP14.phx.gbl...
>I am trying to build the a sample driver but i am getting these problem
>
> ntry.obj : error LNK2001: unresolved external symbol
> __imp__IoCreateSymbolicLink
> entry.obj : error LNK2001: unresolved external symbol
> __imp__IoCreateDevice
> entry.obj : error LNK2001: unresolved external symbol
> __imp__IoDeleteDevice
> entry.obj : error LNK2001: unresolved external symbol
> __imp__IoDeleteSymbolicLink
> functions.obj : error LNK2001: unresolved external symbol
> __imp__MmMapLockedPagesSpecifyCache
> LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
> release\driver.sys : fatal error LNK1120: 6 unresolved externals
> Error executing link.exe.]
>
> though through Depends i have noticed these symbol are defined in
> ntoskrnl.lib, i have includes that in project but facing same problem
> again
> and agin.
>
> could any buddy help me to build my first driver
>
> thanks
>
> --
>
> With Regards
> Alok Gupta
> Visit me at http://alok.bizhat.com
>
> "I think this will Help"
>
>