0

I compile a driver with visual studio 2008 and I get this error:

unresolved external symbol __imp__scanf referenced in function _main  

I don't use any lib and the main function look like this:

__cdecl main {

  .....
  scanf(...);

}

Note: I have other errors with other native functions such as:

unresolved external symbol __imp__printf referenced in function _main  
unresolved external symbol __imp__GetLastError@0 referenced in function _main
unresolved external symbol __imp__CreateFileA@28 referenced in function _main
...  

The discussion here is not like my problem

Update:

I'm compiling a driver with WinDDK, I have pute the line in the sources file:

TARGETLIBS= $(SDK_LIB_PATH)\kernel32.lib  

and much errors begin with unresolved external symbol __imp__ are clean except those: __scanf and _printf. So what lib I must add to fixe them?
Thanks

Community
  • 1
  • 1
Phiber
  • 1,041
  • 5
  • 17
  • 40

0 Answers0