Applied C++
Practical Techniques for Building Better Software


JPEG Software (Independent JPEG Group)

jpegsr6.zip Source code - Microsoft Windows
jpegsrc.v6b.tar.gz Source code - Unix platforms


Pre-built libraries for Microsoft Windows, Linux, and FreeBSD can be found in framework/thirdparty.


Notes:

On FreeBSD (and probaly other platforms), building the jpeg delegate using default settings will not enable proper stack unwinding. If you attempt to generate C++ exceptions from error handlers you write, the C code will abort. With gcc you need to specify '-fexceptions' to make sure exceptions work properly.

The jpeg libraray was configured with:

./configure CFLAGS='-O2 -fexceptions'