MacArthur, Ian (SELEX GALILEO, UK) schrieb:

> Hmm, dunno - probably some paths thing? 

I don't think so, more it seems, I'm missing a library. My minimum test 
example tells "undefined reference to jpeg_std_error":

//-------------------------------------------
#include <stdio.h>
#include <jpeglib.h>

int main (void)
{
        struct jpeg_compress_struct cinfo;
        struct jpeg_error_mgr jerr;
        cinfo.err = jpeg_std_error (&jerr);
        return 0;
}
//-------------------------------------------

The command line for building:

g++ -mwindows -o"Fl_Test.exe"  ./Main.o   -lfltk -lfltk_images 
-lfltk_jpeg -lfltk_png -lfltk_z -lole32 -luuid -lcomctl32 -lwsock32 -lsupc++

tells me:

./Main.o(.text+0x31): In function `main':
D:/Daten/TANtec/Fl_Studio/Fl_Jpeg_Studio/Debug/../Main.cpp:11: undefined 
reference to `jpeg_std_error(jpeg_error_mgr*)'
make: *** [Fl_Test.exe] Error 1

jpeg_std_error should be inside of fltk_jpeg, shouldn't it?

There is no error of not found library and I don't see a library 
missing. But where is the reference to jpeg_std_error()? I'm really out 
of ideas, changing order of librarys also had no effect. Maybe C++ name 
mangling doesn't find the function (don't know very much about this 
theme, but defining "-D__cplusplus" wasn't the trick ;o).

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

Reply via email to