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*)' hello.cxx:(.text+0xcc): undefined reference to `fltk::UP_BOX' hello.cxx:(.text+0xdb): undefined reference to `fltk::Widget::box(fltk::Symbol*)' hello.cxx:(.text+0xe0): undefined reference to `fltk::HELVETICA_BOLD_ITALIC' hello.cxx:(.text+0xef): undefined reference to `fltk::Widget::labelfont(fltk::Font*)' hello.cxx:(.text+0x103): undefined reference to `fltk::Widget::labelsize(float)' hello.cxx:(.text+0x108): undefined reference to `fltk::SHADOW_LABEL' hello.cxx:(.text+0x117): undefined reference to `fltk::Widget::labeltype(fltk::LabelType*)' hello.cxx:(.text+0x140): undefined reference to `fltk::Window::show(int, char**)' hello.cxx:(.text+0x145): undefined reference to `fltk::run()' /tmp/ccBlyRgP.o: In function `fltk::Group::begin()': hello.cxx:(.text._ZN4fltk5Group5beginEv[fltk::Group::begin()]+0x7): undefined reference to `fltk::Group::current_' /tmp/ccBlyRgP.o: In function `fltk::Group::end()': hello.cxx:(.text._ZN4fltk5Group3endEv[fltk::Group::end()]+0x12): undefined reference to `fltk::Group::current_' /tmp/ccATBCb8.o: In function `Simple_window::Simple_window(Point, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': Simple_window.cpp:(.text+0xbe): undefined reference to `Graph_lib::Window::Window(Point, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' Simple_window.cpp:(.text+0x1b3): undefined reference to `Graph_lib::Window::attach(Graph_lib::Widget&)' /tmp/ccATBCb8.o: In function `Simple_window::Simple_window(Point, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': Simple_window.cpp:(.text+0x256): undefined reference to `Graph_lib::Window::Window(Point, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' Simple_window.cpp:(.text+0x34b): undefined reference to `Graph_lib::Window::attach(Graph_lib::Widget&)' /tmp/ccATBCb8.o: In function `Graph_lib::Button::~Button()': Simple_window.cpp:(.text._ZN9Graph_lib6ButtonD1Ev[Graph_lib::Button::~Button()]+0xb): undefined reference to `vtable for Graph_lib::Button' /tmp/ccATBCb8.o: In function `Graph_lib::Button::Button(Point, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void (*)(void*, void*))': Simple_window.cpp:(.text._ZN9Graph_lib6ButtonC1E5PointiiRKSsPFvPvS4_E[Graph_lib::Button::Button(Point, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void (*)(void*, void*))]+0x40): undefined reference to `vtable for Graph_lib::Button' /tmp/ccATBCb8.o: In function `Graph_lib::Window::~Window()': Simple_window.cpp:(.text._ZN9Graph_lib6WindowD2Ev[Graph_lib::Window::~Window()]+0xb): undefined reference to `vtable for Graph_lib::Window' /tmp/ccATBCb8.o:(.rodata._ZTV13Simple_window[vtable for Simple_window]+0x10): undefined reference to `Graph_lib::Window::draw()' /tmp/ccATBCb8.o:(.rodata._ZTI13Simple_window[typeinfo for Simple_window]+0x8): undefined reference to `typeinfo for Graph_lib::Window' collect2: ld returned 1 exit status _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

