POLINK: fatal error: File not found: 'kernel32.lib'.

Started by Tech_Kil, July 23, 2010, 06:25:58 AM

Previous topic - Next topic

Tech_Kil

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

Stefan Pendl

What is your LIB path set to?

Do you use the IDE to compile the project or are you running from pure command line?
---
Stefan

Proud member of the UltraDefrag Development Team

Tech_Kil

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.

Vortex

Tech_Kil,

There should be two entries in the Folders tab :

C:\Program Files\PellesC\Lib
C:\Program Files\PellesC\Lib\Win
Code it... That's all...

Tech_Kil


CommonTater

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.