Hi there
I get a segmentation fault whenever I try to use the method
FL_image::draw(int,int).
I have stripped my program back to the bare essentials and still get it.
Here's my program and build script:
fltktest.cpp
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_JPEG_Image.H>
#include <FL/Fl_Box.H>
#include <stdio.h>
int main()
{
Fl_Window win(720,486);
Fl_Box box(10,10,720-20,486-20);
Fl_JPEG_Image jpg("image.jpg");
jpg.draw(10,10);
win.show();
return(Fl::run());
}
build.sh
#!/bin/sh
g++ fltktest.cpp -Wall -lm -lstdc++ -lfltk_images `fltk-config --ldflags
--use-forms --use-gl --use-images` -o fltktest
Thanks in advance
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk