Thanks for your replies, but it's always the same. Marc
2008/2/18, Alvin <[EMAIL PROTECTED]>: > Marc Gavage wrote: > > > Hi, > > > > I ve try to install fltk-utf8 and then fltk2. > > I was not happy with the result so I uninstall it and reinstall fltk > > 1.1.7 on my Ubuntu. > > Now when I try to compile i get this message: > > > > [EMAIL PROTECTED]:~/filtre$ g++ pad.cpp -o pad `fltk-config --ldflags > > --cxxflags` -ljpeg -lfltk_images > > /tmp/ccbxwcyl.o:(.rodata._ZTV13Fl_JPEG_Image[vtable for > > Fl_JPEG_Image]+0x2c): undefined reference to > > `Fl_RGB_Image::to_rgba(unsigned char*)' > > collect2: ld a retourné 1 code d'état d'exécution > > > > When I remove the Fl_JPEG references in my code, it work but I have a > > segmentation fault. > > > > Did you have any ideas to resolve my problem? > > > > Thanks, > > > > Marc > > > > Try passing --use-images to fltk-config and remove the -ljpeg switch. Oh, > IIRC, order matter with g++ so cflags should be declared first before > the .cpp and libs should be declared at the end? > > Something like: > > g++ `fltk-config --use-images --cxxflags` pad.cpp -o pad \ > `fltk-config --use-images --ldflags` > > That will make sure all the cflags and libs that fltk requires will be > specified. > > -- > Alvin > _______________________________________________ > fltk mailing list > [email protected] > http://lists.easysw.com/mailman/listinfo/fltk > -- Marc Gavage Tu quoque fili mi! _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

