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.
- Error spawning 'rc.exe'
- Work-around: use Windows SDK Configuration Tool to change the headers/libs that Visual Studio 2008 refers to v6.0A.
- 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.
- 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.
Anonymous
September 06, 2012
Yes the last one doesn't work for me either. See www.codeproject.com/.../Visual-Cplusplus-build-debugging-error for some other suggestions on this oneAnonymous
September 06, 2012
Also look in output window for more information It probably can't find your .rc file