Saturday, May 17, 2008 11:35 PMHi All
OK so i know there is A LOT on this error floating around. I am a complete newb to VS 2008. i've just done a complete install of Visual Studio 2008 on Xp32 SP2 etc, with the view of using it as a simple compiler for now, and moving onto building app later.
Having created a new empty project, added a .cpp file and created the simplest of simple Hello world applications i get the following linking error:
1>------ Build started: Project: hello, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
1>Build log was saved at "file://c:\CPP\hello\hello\Debug\BuildLog.htm"
1>hello - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I've not touched or configured anything to get this error. Since this i have been googling like mad, and most replies just say "check your linker settings" etc. But there is nothing there. I've tried adding multiple different paths to the linker dependancies and the VC++ DIrectories and nothing
On my system, the only Kernel32.lib is located at:
C:\Program Files\Microsoft SDKs\Windows\v5.0\Lib\IA64
But surely this is for 64 bit platforms? Sometimes adding this path results in an expected error of it not being the right target machine.
I've tried adding the path to the folder and to the file to the linker dependancies, i've tried adding it to the VC++ Directories for all entries except include. Basically anything that i've found suggested on the net.
This is so frustrating as i've not done anything other than install VS and it wont work! So i dont know am i missing something?
Many thanks in advance
Sunday, May 18, 2008 4:38 AM
You have not provided all pertinent information.
Quote>i've just done a complete install of Visual Studio 2008
Was this actually VS or was it one or more of the language products?
Which edition? Express? Standard? Professional? Note that this
forum is for issues related to the Express Editions of VC++.
If VC Express, how did you install it? Via the MS web install or via
a downloaded ISO disc?
If Express, what other supporting libraries have you installed?
MSDN? Win32 SDK?
Quote>On my system, the only Kernel32.lib is located at:
Quote>C:\Program Files\Microsoft SDKs\Windows\v5.0\Lib\IA64
When and why did you install this version of the SDK? What is your
hardware platform? You have the SDK libs for Itanium processors.
It is certainly not the latest, and not even as recent as the version
originally available when VC 2008 was initially released. If you are
running on an Intel/AMD x86 system you should have at least v6.0a and
there should be a kernel32.lib for 32-bit (in \lib) and one for 64-bit (in \Lib\x64).
If you actually do have Visual Studio 2008, you may not have completed
the full installation.
Tuesday, May 20, 2008 8:27 AMThanks for the response.
Its Visual Studio 2008 Professional, installed from a DVD iso downloaded a while ago via the MSDNAA website. I checked the install boxes for everything on the disc, so i am unsure what else i need to download and install. I havent installed anything additional to what the DVD installed or specific SDKs. I've run the program update (help>>update) several times to ensure it and my system are fully up to date.
I'm running on a 32bit intel dual core system, Asus p5ne mainboard.
Wednesday, May 21, 2008 1:09 AM
Download and install the Windows SDK from here:
- Proposed As Answer by ZigZag7 Sunday, March 11, 2012 10:57 PM
Wednesday, May 21, 2008 10:33 PMThank you sir!
Lovin your work!
Sunday, March 11, 2012 10:56 PMYeah this worked perfectly for me too. Thanks :-)