Hi,

 I'm trying to build a splash screen (actually took code from the fluid2 
application) using a JPEG picture instead of the XPM one.

 Replacing the line:

  o->image(new fltk::xpmImage(datas_fluid_about));

 with:

  o->image(fltk::SharedImage::get("splash.jpg"));

yields a black rectangle. I tried to add the fltk::register_images() function, 
but then linking the application fails with:

 /usr/local/lib/libfltk2_images.a(xpmFileImage.o): In function 
`fltk::xpmFileImage::fetch()':
xpmFileImage.cxx:(.text+0x85): undefined reference to 
`fltk::xpmImage::fetch(fltk::Image&, char const* const*)'
xpmFileImage.cxx:(.text+0x2e1): undefined reference to 
`fltk::xpmImage::fetch(fltk::Image&, char const* const*)'
xpmFileImage.cxx:(.text+0x3af): undefined reference to 
`fltk::xpmImage::fetch(fltk::Image&, char const* const*)'

Though the test apps 'button' and 'buttons' link and run successfully with the 
same flags.

I'm using FLTK 2.0.x-r5963 on Linux.

 Thanks,

  Romain

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

Reply via email to