I want to read jpeg images for my program, which uses GIL (a Boost library). In the documentation for GIL, it is recommended to use the jpeg library present at Among other things, it is also required to compile and link against libjpeg.lib for making it work.