Udostępnij za pośrednictwem


Confusing Errors in Building Win32 application in VS 2008

Well, when you write your first win32 console application in Visual Studio 2008, you probably just want to click F5 and test if it runs or not. Unfortunately, probably you will get some trouble as I did. I collected three "confusing" errors here.

  1. Error spawning 'rc.exe'
    • Work-around: use Windows SDK Configuration Tool to change the headers/libs that Visual Studio 2008 refers to v6.0A.
  2. Error 1 fatal error LNK1181: cannot open input file 'kernel32.lib'  
    • Work-around: use Windows SDK Configuration Tool to change the headers/libs that Visual Studio 2008 refers to v6.0A.
  3. Error result 1 returned from 'c:\program files\Microsoft SDKs\windows\v6.0A\bin\rc.exe'
    • Work-around: turn off "Incremental Linking"

I am not sure if there are other scenarios which caused these errors. Just for my experience, because my computer was installed with Windows SDK partially.

Comments

  • Anonymous
    July 10, 2011
    3rd problem. >>Work-around: turn off "Incremental Linking"
  • doesn't help.