linking in .lib objects

Started by tpekar, February 26, 2010, 05:12:29 PM

Previous topic - Next topic

tpekar

Help!  I have created a couple of .lib objects.  When I try to link them in at compile time and create an .exe, I get the message "POLINK: error: Unresolved external symbol" followed by '_myfunction'. where myfunction is my function in the .lib object.  I have the .lib objects in the \program files\PellesC\Lib folder.  What am I doing wrong?

CLR

You should add your.lib in Linker Tab.

Menu Project -> Options -> Linker

Vortex

Another option is to use the #pragma statement :

#pragma lib "user32.lib"
Code it... That's all...