Link fails with C include file jpeglib.h
Status: Alpha
Brought to you by:
chch-kiwi
Link fails with multiple unresolved symbols, starting with jpeg_std_error(). This is caused by calling C code from C++ code, which has different name mangling conventions. Can be fixed by wrapping the #include for libjpeg.h inside epeglite.h, i.e.
replacing
#include <libjpeg.h>
with
extern "C" {
#include <jpeglib.h>
}
whups, it's not libjpeg.h, but rather jpeglib.h...