MacArthur, Ian (SELEX GALILEO, UK) schrieb:
> Maybe you need to add an explicit path...
No, I just got a step further:
> $ cd /usr/local/lib
> $ nm libfltk_jpeg.a | grep std_err
> 000001e0 T _jpeg_std_error
00001a39 T _jpeg_std_error
> So clearly libfltk_jpeg.a does contain the function you are missing, at
> least on my build (this is fltk-1.1.8 from svn)
Okay 1.1.7 also contains the function, but what's about the leading
underscore? Because of C functions, shouldn't there something like
'extern "C"' inside the jpeglib.h?
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.
For jpeg_std_error I changed it to extern "C" and after that the
function was found. There is a macro '#define EXTERN(type) extern type'
and I tried to change it to '#define EXTERN(type) extern "C" type', but
this doesn't work because of generating new problems (definition stuff).
I don't find a way to use it - it seems, jpeglib basically is not usable
for C++? ;o(
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk