C.W.Holeman II wrote: > g++ hello.cxx ../Graph.cpp ../Simple_window.cpp -lfltk_images -lfltk > > produces: > > /tmp/ccBlyRgP.o: In function `main': > hello.cxx:(.text+0x44): undefined reference to `fltk::Window::Window(int, > int, char const*)' > hello.cxx:(.text+0x97): undefined reference to `fltk::Widget::Widget(int, > int, int, int, char const*)' [ ... more error messages elided ... ] > collect2: ld returned 1 exit status
It looks as if the linker doesn't find the fltk libs. Usually there should be something like "-L /path/to/fltk-libs" in your link line. You'r obviously using FLTK 2, so please try: fltk2-config --use-images --ldflags to show the correct linker options and modify your linker line accordingly. If you can't make it work, please ask again, and tell us how you configured, compiled, linked, and installed your fltk libs (e.g. ./configure --prefix=... ?). Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

