I just can not figure out how to make Cimg work with jpeg. Connect all connected:

#include "jpeglib.h" #define cimg_use_jpeg #include "CImg.h" 

Maybe I did not put Jpeglib? The Каталоги включения Каталоги библиотек and Дополнительные зависимости seem to stand right. But when building a project, it gives

 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_std_error" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_CreateCompress" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_stdio_dest" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_set_defaults" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_set_quality" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_start_compress" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_write_scanlines" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_finish_compress" 1>message.image2.obj : error LNK2001: неразрешенный внешний символ "jpeg_destroy_compress" 1>C:\Progr\VK\message.image2\x64\Release\message.image2.exe : fatal error LNK1120: неразрешенных внешних элементов: 9 
  • You just did not connect the lib files. - KoVadim
  • @KoVadim in fact, I connected everything according to the instructions. But really, the same error gives even if I did not connect anything. Everything is more complicated, the lib file that I connected is out of date - BuT Bigbook
  • it seems that the right stand is necessary as to do something that would be "exactly correct". And maybe he needs another library for jpeg? What manual did you use? - KoVadim

0