> re, now i'm having trouble while trying to compile a test program
> using minGW :
>
> [...]
>
> but when i try to compile a test program i got this :
>
> g++ test.cpp -o test
>
> [ ... undefined reference errors snipped ...]

You haven't told g++ that it needs to link against the fltk libraries.
Remember, you will need to supply the libraries in the correct order.

For a simple one-file example you can just do:

  fltk-config --compile test.cpp

and it will build it for you, and show you the complete compile line.

There's a section about using fltk-config for more advance stuff in
Makefiles in the on-line documentation. Go to the FLTK Basics chapter
of http://www.fltk.org/doc-1.3/index.html and then scroll down to
the "Compiling programs with Makefiles" section.

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

Reply via email to