Hello,
I am self taught and rather unfamilair with the g++/GCC compiler toolchain.  
That said:


I ran make on the 1.3 version and it seemed to do its job without any problems. 
 However, when I try to compile the helloworld program:

#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>

int main(int argc, char **argv) {
  Fl_Window *window = new Fl_Window(300,180);
  Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!");
  box->box(FL_UP_BOX);
  box->labelsize(36);
  box->labelfont(FL_BOLD+FL_ITALIC);
  box->labeltype(FL_SHADOW_LABEL);
  window->end();
  window->show(argc, argv);
  return Fl::run();
}

using the command:
g++ -o tester tutorial.cxx

I get the following errors:
tutorial.cxx:1:19: error: FL/Fl.H: No such file or directory
tutorial.cxx:2:26: error: FL/Fl_Window.H: No such file or directory
tutorial.cxx:3:23: error: FL/Fl_Box.H: No such file or directory
tutorial.cxx: In function ‘int main(int, char**)’:
tutorial.cxx:6: error: ‘Fl_Window’ was not declared in this scope
tutorial.cxx:6: error: ‘window’ was not declared in this scope
tutorial.cxx:6: error: expected type-specifier before ‘Fl_Window’
tutorial.cxx:6: error: expected `;' before ‘Fl_Window’
tutorial.cxx:7: error: ‘Fl_Box’ was not declared in this scope
tutorial.cxx:7: error: ‘box’ was not declared in this scope
tutorial.cxx:7: error: expected type-specifier before ‘Fl_Box’
tutorial.cxx:7: error: expected `;' before ‘Fl_Box’
tutorial.cxx:8: error: ‘FL_UP_BOX’ was not declared in this scope
tutorial.cxx:10: error: ‘FL_BOLD’ was not declared in this scope
tutorial.cxx:10: error: ‘FL_ITALIC’ was not declared in this scope
tutorial.cxx:11: error: ‘FL_SHADOW_LABEL’ was not declared in this scope
tutorial.cxx:14: error: ‘Fl’ has not been declared

What should I do to get it working?
Thanks...

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

Reply via email to