NO

Author Topic: linking in .lib objects  (Read 2621 times)

tpekar

  • Guest
linking in .lib objects
« on: February 26, 2010, 05:12:29 PM »
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

  • Guest
Re: linking in .lib objects
« Reply #1 on: February 27, 2010, 12:47:39 AM »
You should add your.lib in Linker Tab.

Menu Project -> Options -> Linker

Offline Vortex

  • Member
  • *
  • Posts: 802
    • http://www.vortex.masmcode.com
Re: linking in .lib objects
« Reply #2 on: February 27, 2010, 09:44:55 AM »
Another option is to use the #pragma statement :

Code: [Select]
#pragma lib "user32.lib"
Code it... That's all...