Answer the question
In order to leave comments, you need to log in
How to include a lib file in Visual Studio 2012?
Hello!
I have the FreeImage library , its sources, and the .lib and .dll files, and I don't know what to do with it.
How do I connect all this to a Visual Studio project? How (point by point) to connect the .lib file and where to copy it so that VS sees it, do I need the .dll file, do I need to include the library source files with the .dll and .lib available, and if so, how to do it correctly?
Previous attempts to include the sources resulted in "error LNK2019" error. Maybe someone has come across and can give sensible advice?
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
Thank you very much to everyone who replied or sympathized. Accumulated hints, and the problem began to be solved. If anyone else has encountered this, see a good guide - it can help. Not quite on my problem, but very well indicates in which direction you need to dig:
Vaunted manual.
Plus, the FreeImage FAQ offers a solution.
You can write in code#pragma comment( lib, "FreeImage.lib" )
See linker settings. More specifically, it seems to be "Input->Additional Dependencies".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question