Dear All, I'm new to FLTK. Here's the problem i'm facing. I've used the sample code from "Chapter 4.1 Writing Your First FLTK program" of the FLTK documentation.
Here's how i'm compiling, linking the program and getting the corresponding error: <compiling> g++ -g -c -I/usr/local/include ./fltk_simple_install_test.c <linking> g++ -g fltk_simple_install_test.o -o ./fltk_simple_install_test /usr/local/lib/libfltk.a -lXext -lX11 -lm fltk_simple_install_test.o: In function `main': /home/onkar/workspace/./fltk_simple_install_test.c:5: undefined reference to `Fl_Window::Fl_Window(int, int, char const*)' /home/onkar/workspace/./fltk_simple_install_test.c:10: undefined reference to `fl_define_FL_SHADOW_LABEL()' /home/onkar/workspace/./fltk_simple_install_test.c:11: undefined reference to `Fl_Group::end()' /home/onkar/workspace/./fltk_simple_install_test.c:12: undefined reference to `Fl_Window::show(int, char**)' /home/onkar/workspace/./fltk_simple_install_test.c:13: undefined reference to `Fl::run()' fltk_simple_install_test.o: In function `Fl_Box': /usr/local/include/FL/Fl_Box.H:57: undefined reference to `Fl_Widget::Fl_Widget(int, int, int, int, char const*)' /usr/local/include/FL/Fl_Box.H:57: undefined reference to `vtable for Fl_Box' collect2: ld returned 1 exit status on...@onkar-laptop:~/workspace$ Pl. Help. Thank You. other details: I've completed make install for fltk 2.0 with default options. Also if I change the command to the following I get a different error: g++ -g fltk_simple_install_test.o -o ./fltk_simple_install_test /usr/local/lib/libfltk.so -lXext -lX11 -lm /usr/local/lib/libfltk.so: undefined reference to `vtable for Fl_Paged_Device' /usr/local/lib/libfltk.so: undefined reference to `XineramaQueryScreens' /usr/local/lib/libfltk.so: undefined reference to `Fl_Paged_Device::device_type' /usr/local/lib/libfltk.so: undefined reference to `XineramaIsActive' /usr/local/lib/libfltk.so: undefined reference to `typeinfo for Fl_Paged_Device' /usr/local/lib/libfltk.so: undefined reference to `Fl_Paged_Device::start_job(int, int*, int*)' collect2: ld returned 1 exit status on...@onkar-laptop:~/workspace$ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

