re, now i'm having trouble while trying to compile a test program using minGW :
i pasted the FL folder under minGW/include and the 7 .lib under minGW/lib
but when i try to compile a test program i got this :
g++ test.cpp -o test
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.cpp:(.text+0x9a): undefined
reference to `Fl_Window::Fl_Window(int, int, char const*)'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.cpp:(.text+0xf2): undefined
reference to `Fl_Window::show()'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.cpp:(.text+0xf7): undefined
reference to `Fl::run()'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.cpp:(.text+0x12d): undefined
reference to `Fl_Window::~Fl_Window()'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.cpp:(.text+0x1ac): undefined
reference to `Fl_Window::~Fl_Window()'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.cpp:(.text$_ZN6Fl_BoxD1Ev[Fl_Box::~Fl_Box()]+0xb):
undefined reference to `vtable for Fl_Box'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.cpp:(.text$_ZN6Fl_BoxD1Ev[Fl_Box::~Fl_Box()]+0x16):
undefined reference to `Fl_Widget::~Fl_Widget()'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.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*)'
C:/DOCUME~1/vivi168/LOCALS~1/Temp/cc8DKfz0.o:test.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
here is the source code :
#include <Fl/Fl.h>
#include <Fl/Fl_Box.h>
#include <Fl/Fl_window.h>
int main()
{
Fl_Window window(200,200, "Window title");
Fl_Box box(0,0,200,200,"Hello World!");
window.show();
return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk