> re, now i'm having trouble while trying to compile a test 
> program using minGW :

Did you read the howto about using fltk-config that I sent you?


> i pasted the FL folder under minGW/include and the 7 .lib 
> under minGW/lib

OK - but why do that by hand?
You said you were using Msys + mingw - so why not just do a "make
install" and have the tools sort it out for you?

http://www.fltk.org/articles.php?L598 

> but when i try to compile a test program i got this :
> 
> g++ test.cpp -o test

You have not told the compiler what libraries to link into your
application.

Try this:

$ fltk-config --compile test.cpp

That should do everything you need.

In a wider sense, if you need to find out what libs to link, do:

$ fltk-config --ldstaticflags
-mwindows -L/usr/local/lib -mno-cygwin /usr/local/lib/libfltk.a -lole32
-luuid -lcomctl32 -lwsock32

So we see that your compile command then ought to be:

$ g++ test.cpp -o test -mwindows -L/usr/local/lib -mno-cygwin
/usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32 -lwsock32





SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to