How to install libjpeg for windows?

I downloaded some code that libjpeg uses, but no dlls in the source files are included, and I'm trying to compile / execute it correctly.

I am using VS2010: in my source files I have #include "jpeglib.h", and in Linker > Input > Additional DependenciesI have jpeg.lib, which cannot be found on my computer.

I managed to go here: http://gnuwin32.sourceforge.net/packages/jpeg.htm and download the archives of the developer files that really contain the header and the .lib file, the programs compile fine, but when I execute .exe, I have an error jpeg62.dll missingwhich I do not understand.

How should I solve this?

Firstly, I could not find the jpeg62.dll file on the previous website.

Secondly, I am wondering why I need a dll, since I thought that using .lib files for links means that I do not need DLL files for my program. Any help is appreciated

+5
source share
1 answer

You must also download the binaries and dependencies packages from the GnuWin32 website. The jpeg62.dll file is located in the bin directory of the binary archive.

A .lib file is not always a complete static library; it can also be an import library for a dll that must be present when the program starts.

+6
source

All Articles