> I have downloaded and installed fltk-1.3.0 and it built successfully.
> Next I accessed http://fltk.org/doc-1.3/fltk.pdf
> and copied the example program at:  4.1 Writing Your First FLTK Program
>  My attempts to build it give the following errors:
> /tmp/ccyNClof.o: In function `main':
> hello.cxx:(.text+0x38): undefined reference to
> `Fl_Window::Fl_Window(int, int, char const*)'
> hello.cxx:(.text+0xf5): undefined reference to `fl_define_FL_SHADOW_LABEL()'
> hello.cxx:(.text+0x111): undefined reference to `Fl_Group::end()'
> hello.cxx:(.text+0x12b): undefined reference to `Fl_Window::show(int, char**)'
> hello.cxx:(.text+0x130): undefined reference to `Fl::run()'
> /tmp/ccyNClof.o: In function `Fl_Box::Fl_Box(int, int, int, int, char 
> const*)':
> hello.cxx:(.text._ZN6Fl_BoxC1EiiiiPKc[Fl_Box::Fl_Box(int, int, int,
> int, char const*)]+0x30): undefined reference to
> `Fl_Widget::Fl_Widget(int, int, int, int, char const*)'
> hello.cxx:(.text._ZN6Fl_BoxC1EiiiiPKc[Fl_Box::Fl_Box(int, int, int,
> int, char const*)]+0x39): undefined reference to `vtable for Fl_Box'
> collect2: ld returned 1 exit status
> 
> What gives?

Looks like you've forgotten to link against fltk......
If you're compiling from the command line, "fltk-config --compile hello.cxx" 
should work the requisite magic for you. Alternatively, add -lfltk to your 
command line g++ command (assuming you're using g++, anyway)

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

Reply via email to