I've used simple code from the example page of FLTK 2.0 documentation:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#include <fltk/Window.h>
#include <fltk/Widget.h>
#include <fltk/run.h>
using namespace fltk;

int main(int argc, char **argv) {
  Window *window = new Window(300, 180);
  window->begin();
  Widget *box = new Widget(20, 40, 260, 100, "Hello, World!");
  box->box(UP_BOX);
  box->labelfont(HELVETICA_BOLD_ITALIC);
  box->labelsize(36);
  box->labeltype(SHADOW_LABEL);
  window->end();
  window->show(argc, argv);
  return run();
}
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

While building, I havve been getting these errors in my build log:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0x9c):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0xb3):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0xf2):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0x130):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0x163):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0x1a0):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0x1b5):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle
 const&) const]+0x1ca):UpBox.cxx: undefined reference to [EMAIL PROTECTED]'
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

I've linked to all the library files in the lib directory of my base FLTK2 
folder. From the documentation, "libfltk2.a" is the core library of FLTK2. I 
have no idea what is wrong at the moment, since I'm new to how things work in 
GUI kits and the like...
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to