Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » couldn' open kernel32.lib(compiling problems)
couldn' open kernel32.lib [message #805660] Fri, 24 February 2012 01:54 Go to next message
Pierre-Jean Hardibo is currently offline Pierre-Jean HardiboFriend
Messages: 2
Registered: February 2012
Junior Member
Hello, i try since yesterday Eclipse for C/C++ developpers, i tried a simple hello world programm but when building, arrive this message :
LINK : fatal error LNK1104: couldn't open file 'kernel32.lib'.
So i tried to found a solution on google i found a topic who explains to put the path of kernel32.lib on project properties (C/C++ General > Paths and symbols).
I put this path C:/Program Files/Microsoft SDKs/Windows/v7.0A/Lib/kernel32.lib even if the real name of file is "Kernel32" and not "kernel32.lib" (i also tried with "Kernel32" but it didn't work).
It doesn't works.
I don't know how to do, thanks for help.
Bye
Re: couldn' open kernel32.lib [message #805890 is a reply to message #805660] Fri, 24 February 2012 09:06 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
see http://wiki.eclipse.org/CDT/User/FAQ#Adding_C.2FC.2B.2B_External_Libraries

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: couldn' open kernel32.lib [message #806217 is a reply to message #805890] Fri, 24 February 2012 18:03 Go to previous messageGo to next message
Pierre-Jean Hardibo is currently offline Pierre-Jean HardiboFriend
Messages: 2
Registered: February 2012
Junior Member
Axel Mueller wrote on Fri, 24 February 2012 04:06
see wiki.eclipse.org/CDT/User/FAQ#Adding_C.2FC.2B.2B_External_Libraries

Yes it works but i have a new error message :

LINK : fatal error LNK1104: couldn't open file 'C:\Program.obj'

It's strange that it try to open such a file.
Note: i'm really a beginner.

Thanks for your help.
Re: couldn' open kernel32.lib [message #808044 is a reply to message #806217] Mon, 27 February 2012 10:22 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Pierre-Jean Hardibo wrote on Fri, 24 February 2012 19:03
Axel Mueller wrote on Fri, 24 February 2012 04:06
see wiki.eclipse.org/CDT/User/FAQ#Adding_C.2FC.2B.2B_External_Libraries

Yes it works but i have a new error message :

LINK : fatal error LNK1104: couldn't open file 'C:\Program.obj'

It's strange that it try to open such a file.
Note: i'm really a beginner.

Thanks for your help.

The compiler creates object files from your source code. The linker then "glues" these object files together to create an executable. Usually these object files are created in your workspace and not in the root folder of drive C:. I guess you somehow broke your project setup. However, I have not enough info to help you.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:eclipse IDE can't understand posix-style paths
Next Topic:Error in compailing shared object project
Goto Forum:
  


Current Time: Thu Apr 25 09:30:35 GMT 2024

Powered by FUDForum. Page generated in 0.03524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top