> 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?


Edzard,

Where are your fltk libs installed to? Maybe you need to add an explicit
path...


 g++ -mwindows -o"Fl_Test.exe"  ./Main.o \
    -L/path/to/fltk/libs  \
    -lfltk -lfltk_images  \
    -lfltk_jpeg -lfltk_png -lfltk_z -lole32 -luuid \
    -lcomctl32 -lwsock32 -lsupc++


For sure, the libfltk_jpeg.a does contain the ref you are missing...


Using Msys/mingw on a winXP box (I think that is similar to your setup?)

$ cd /usr/local/lib
$ nm libfltk_jpeg.a | grep std_err
000001e0 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)






SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to