Jpeglib is no longer in a namespace, causing linker errors

All the jpeg code is wrapped in a namespace, so that in case you are linking again libjpeg it doesn’t cause linker errors.

namespace juce
{

JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4100 4127 4365 4996 5033 6240 6326 6386 6385 28182 28183 6387 6011 6001)

namespace jpeglibNamespace
{

But, in this commit: Graphics: Import JPEG library code · reFX/JUCE@34c8704 · GitHub

#ifdef __cplusplus
#ifndef DONT_USE_EXTERN_C
extern "C" {
#endif
#endif

Was added to jpeglib.h and now all the libjpeg functions are treated as C and therefore no longer appear in a namespace.

Sorry about that, it snuck in with the Jpeg library upgrade.

This should be fixed on develop!

1 Like