• Advertisement
Sign in to follow this  

Accessing implementation from .lib

This topic is 3324 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Evening all, Just a quick question, ive started working with lib files only today in order to make things a little easier for myself when creating new apps. I have the lib compiling nicely the problem i am having is obtaing the implementation from the lib once it is linked to the application using it. I get the linker error error LNK2001: unresolved external symbol I have the general header that holds the function i would like to call included in application and its linked to the project through the Additional Include Directories my dilemma is now where the lib should be linked, normally i would add it into the Linker->Input->Additional Dependencies, but its not finding the lib file when i add it, ive added the reference to the lib(i think) through the Common Properties-> Framework and References. But yet it seems that the lib is evading the application some how. ---edit--- Ive also added the correct directory in the Tools->Options->Projects and Solutions->VC++ Directories ---------- Anyone any feedback? Thanks [Edited by - terry_burns85 on January 18, 2009 8:02:27 PM]

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by terry_burns85
normally i would add it into the Linker->Input->Additional Dependencies, but its not finding the lib file when i add it

That's the right way to do it. Make sure you set the full path, or add the path to "Linker->General->Additional Library Directories".

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement