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