Pelles C forum
C language => Beginner questions => Topic started by: Tech_Kil on July 23, 2010, 06:25:58 AM
-
Hello. I try to execute my program and get this error.
POLINK: fatal error: File not found: 'kernel32.lib'.
*** Error code: 1 ***
Any suggestions? Thanks
-
What is your LIB path set to?
Do you use the IDE to compile the project or are you running from pure command line?
-
I was using the IDE. and my LIB path, I;m not completely sure. What tab would I check this under? My Library and object files are set to kernel32.lib advapi32.lib delayimp.lib and in the libraries menu of the folder tab it is showing C:/Program Files/PellesC/Lib. Is that what you were asking? Thanks.
-
Tech_Kil,
There should be two entries in the Folders tab :
C:\Program Files\PellesC\Lib
C:\Program Files\PellesC\Lib\Win
-
That fixed it. Thanks a lot ;D
-
A little trick you might like...
#define WIN32_DEFAULT_LIBS
At the top of your source code will automatically find the lib files associated
with your #includes.
You do still have to have the paths set correctly in your project options, but now
there's no need to list them individually for the linker.