Alright I got FLTK to compile and install successfully after following your
directions. Thank you for your help thus far. The last problem I'm having is
I'm trying to compile and run a test FLTK program but I'm getting a very long
and strange error when I try to do it. Here's the code (sorry if it formats
badly):
#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();
}
And here's the error message I get after trying to compile it:
$ g++ -Wall -o fltktest fltktest.cpp
fltktest.cpp:18:2: warning: no newline at end of file
/cygdrive/c/Users/Coleman/AppData/Local/Temp/ccffaipn.o:fltktest.cpp:(.text+0x95):
undefined reference to `Fl_Window::Fl_Window(int, int, char const*)'
/cygdrive/c/Users/Coleman/AppData/Local/Temp/ccffaipn.o:fltktest.cpp:(.text+0x1a1):
undefined reference to `fl_define_FL_SHADOW_LABEL()'
/cygdrive/c/Users/Coleman/AppData/Local/Temp/ccffaipn.o:fltktest.cpp:(.text+0x1bb):
undefined reference to `Fl_Group::end()'
/cygdrive/c/Users/Coleman/AppData/Local/Temp/ccffaipn.o:fltktest.cpp:(.text+0x1d4):
undefined reference to `Fl_Window::show(int, char**)'
/cygdrive/c/Users/Coleman/AppData/Local/Temp/ccffaipn.o:fltktest.cpp:(.text+0x1d9):
undefined reference to `Fl::run()'
/cygdrive/c/Users/Coleman/AppData/Local/Temp/ccffaipn.o:fltktest.cpp:(.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*)'
/cygdrive/c/Users/Coleman/AppData/Local/Temp/ccffaipn.o:fltktest.cpp:(.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
> > Ok it compiles the JPEG files after I enter that configure command, but now
> > I get this error message towards the end when I type make:
> >
> > Linking browser.exe
>
> Did you make sure to make clean if you didn't start from fresh?
>
> Mark
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk