I am posting this in the hopes that one other ignorant dilettante will be 
spared what I just went through.

To build with FLTK (1.3.0) and MinGW using Eclipse (indigo):

First follow the steps to build fltk: open an msys mingw shell, follow the 
steps.  I copied the resulting files from the msys local include, lib, etc. to 
the C:\MinGW\include, lin, etc. dirs but maybe you don't have to.

Then open eclipse with cdt installed, and create a new plain-vanilla c++ 
project.  Now go to project/properties/c++ build/settings and the tool settings 
tab.  There are 2 things I had to change from the defaults (for MinGW GCC and 
CDT Internal Builder):

Click MinGW C++ Linker.  Change the command from g++ to gcc -mwindows.  Do not 
use ld!  The -mwindows gets rid of the pesky DOS console window.

Then go to Libraries, and add under Library search path (-L) C:\MinGW\lib 
(obvious).  Under Libraries (-l) add:

(these 4 were shown by fltk-config --ldflags in msys)
fltk
ole32
comctl32
uuid
(these 4 were not - maybe they are obvious to some, but not to me)
comdlg32
gdi32
msvcrt
stdc++

Then Project/Build the sucker!

Best wishes to all;
Peace, love, mathematics, and the careful use of certain psychedelics!







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

Reply via email to