On 19.02.2008, at 12:20, Edzard Egberts wrote:

> I tried to use zlib - it works at once - and I found the functions
> defined another way: There is a leading #ifdef __cplusplus / extern  
> "C"
> { / #endif to the whole file and ZEXPORT definitions for the  
> functions.
> In jpeglib the functions are only defined as extern.


Oh, yes, that is a possible problem. If you include jpeg libraries  
from within a C++ source, you should put the

extern "C" {
#include <jpegstuff_and_so_on>
}

into your source. This is a jpeg library issue. Many older libraries  
are missing the required #ifdef __cplusplus construct that makes the  
name mangeling compatible to C++.

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to