I installed the library with vcpkg: https://github.com/Microsoft/vcpkg
In the PowerShell (Admin):
.\vcpkg install libjpeg-turbo:x64-windows-static
.\vcpkg integrate install
I added reference to the library in :
Configuration Properties > C/C++ > General > Additional Include Directories : [path]libjpeg-turbo-gcc\include
Configuration Properties > Linker > General > Additional Library Directories:[path]libjpeg-turbo-gcc\lib
Configuration Properties > Linker > Input > Additional Dependencies :
- libjpeg.a
- libjpeg.dll.a
- libturbojpeg.a
- libturbojpeg.dll.a
But I obtain the linking errors:
- LNK2019 : unresolved external symbol __imp___iob referenced in function _output_message libjpeg.a(jerror.c.obj)
LNK2019 : unresolved external symbol _sscanf referenced in function _jinit_memory_mgr libjpeg.a(jmemmgr.c.obj)
LNK2019 : unresolved external symbol _sprintf referenced in function _format_message libjpeg.a(jerror.c.obj)
I tried to add the libturbojpeg.dll and libjpeg-62.dll from the libjpeg-turbo-gcc\bin folder but I obtain a link error LNK1107 invalid or corrupt file: cannot read at 0x3D0 \libjpeg-turbo-gcc\bin\libturbojpeg.dll.
Which files do I have to include and where to find them? Thank you in advance.