S
S
sleeplynerd2016-08-24 22:16:42
visual studio
sleeplynerd, 2016-08-24 22:16:42

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

3 answer(s)
S
sleeplynerd, 2016-08-28
@sleeplynerd

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.

A
Alexander Ananiev, 2016-08-25
@SaNNy32

You can write in code
#pragma comment( lib, "FreeImage.lib" )

V
Vladimir Martyanov, 2016-08-24
@vilgeforce

See linker settings. More specifically, it seems to be "Input->Additional Dependencies".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question