dependencies linking isnt enough?

Posted by Russel on Stack Overflow See other posts from Stack Overflow or by Russel
Published on 2010-06-09T03:13:45Z Indexed on 2010/06/09 3:22 UTC
Read the original article Hit count: 225

In Visual Studio (C++) the other day, I was trying to build some example code and it would not work, even though I was pointing at the right include and lib directories. (I got linker errors)

I asked a friend who fixed the problem by specifying the necessary .lib files in the General Properties->Linker->Input field of the project settings.

My questions:

Simply pointing to the directory with the .lib files is not enough? You need to specifically tell the linker which lib files to link?

By listing the .lib files in the "additional dependencies" field, am I specifying exactly which static libs get built into the exe? If the answer to this is yes, then will these be the ONLY lib files that get built into the exe? Why is it called "additional" dependencies? Is there another place to specify lib files to include? Before I thought this was done by including the necessary header file?

Thanks everyone!

Russel

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about dependencies