I feel like an idiot, but this is my first time trying to compile things in
the DDK environment. I'm trying to use the C standard runtime function
"fopen" in a driver. I've included stdio.h and the code compiles fine, but
when it links, I get "unresolved external symbol __imp__fopen referenced in
function..." I figured the standard C library stuff would be setup to link
by default. What am I missing, and where does it go?

Thanks,

pw

Re: unresolved external using standard C lib by Don

Don
Fri Feb 27 14:59:36 CST 2004

You cannot use the C standard I/O routines that actually access files in a
driver. You will have to do I/O with either ZwCreateFile, ZwReadFile,
ZwWriteFile, ZwClose or by rolling your own IRP's and passing them to the
drivers.

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

"Paul West" <pwest@siu.edu> wrote in message
news:u1xqyMX$DHA.2432@TK2MSFTNGP11.phx.gbl...
> I feel like an idiot, but this is my first time trying to compile things
in
> the DDK environment. I'm trying to use the C standard runtime function
> "fopen" in a driver. I've included stdio.h and the code compiles fine, but
> when it links, I get "unresolved external symbol __imp__fopen referenced
in
> function..." I figured the standard C library stuff would be setup to
link
> by default. What am I missing, and where does it go?
>
> Thanks,
>
> pw
>
>



Re: unresolved external using standard C lib by Maxim

Maxim
Sat Feb 28 11:36:20 CST 2004

There is no fopen() in NT kernel. Forget it.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"Paul West" <pwest@siu.edu> wrote in message
news:u1xqyMX$DHA.2432@TK2MSFTNGP11.phx.gbl...
> I feel like an idiot, but this is my first time trying to compile things in
> the DDK environment. I'm trying to use the C standard runtime function
> "fopen" in a driver. I've included stdio.h and the code compiles fine, but
> when it links, I get "unresolved external symbol __imp__fopen referenced in
> function..." I figured the standard C library stuff would be setup to link
> by default. What am I missing, and where does it go?
>
> Thanks,
>
> pw
>
>