LNK1104: cannot open file 'kernel32.lib'

Posted by Geoff on Stack Overflow See other posts from Stack Overflow or by Geoff
Published on 2010-10-13T18:38:12Z Indexed on 2012/09/26 3:38 UTC
Read the original article Hit count: 175

I Had VS2010 installed but found that intellisense wasn't working. I looked on the web and found that I wasn't the only one who had that issue. So, I installed VS2008 and everything was fine. Then I decided to clean up my computer and removed VS2010 and immediately started getting this error on my programs (new and old). Even a simple test program that has one cout command. I tried repairing VS2008 and that didn't work so I tried to uninstall and then reinstall and still I am getting the same problem.

I have looked online for this issue and though I have found a lot of other people are experiencing this issue it is not the same. They are having problems with other external references, not the ones that should automatically be included like kernel32 and lib32 etc.

I also tried the solution that worked for some people with their other references and I included the path (with and without quotes) to my kernel32 directory but still I get the same problem, or in some instances I will get

LNK1104: cannot open file 'C:\WINDOWS\system32.obj'

with and without quotes in the linker config.

Can anyone please help?

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about linker-error