Hello,
I'm trying to do the compilation of a FLTK file, but there are errors with the
linking step.
I use FLTK 1.3.0 with codeblocks 10.05.
1)
Here is the file i want to compile :
---------------------------
#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(340,180);
Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
box->box(FL_UP_BOX);
box->labelfont(FL_BOLD+FL_ITALIC);
box->labelsize(36);
box->labeltype(FL_SHADOW_LABEL);
window->end();
window->show(argc, argv);
return Fl::run();
}
---------------------------
2)
When i clic on the "rebuild" button :
- The "compiling step" is ok.
- The "linking step" displays :
"src\Graph.o:Graph.cpp:(.text+0x23): undefined reference to
`fl_graphics_driver".
3) My questions :
- Does someone can give me the lines i have to write on the fields :
. "Build options > Compiler settings > Other options" ?
. "Build options > Compiler settings > #defines" ?
. "Build options > Linker settings > link libraries ?
. "Build options > Linker settings > other link otpions ?
Best regards,
Hello
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk