> I removed my old minGW and installed from scratch.
> I built both FLTK and GSL using msys and the
> ./config make make install dance.
>
> This all worked.
>
> I used fltk-config --compile hello.cxx
> and that was fine.
>
> But fltk-config --compile mandelbrot.cxx
> fails (of course) because there are two
> .cxx files to use.
>
> This got me back to makefile hell. The
> best I could do was:
> [...]
> There must be a better way and I am really rusty
> with make.
>
Aside from the HOWTO Ian has already suggested, if you're not afraid of abusing
the shell a little bit, you can do either one of the following:
1) By hand, run "gcc `fltk-config --cxxflags` mandelbrot.cxx mandelbrot_ui.cxx
-o mandelbrot `fltk-config --ldflags`" in the terminal (added ""s for clarity,
but note the backticks!). This will create the mandelbrot executable from the
two files and will use fltk-config to work out what -I and -l/-L flags are
required. Of course, you can still add your own flags in as necessary.
2) Within your makefile, you *should* be able to change CXXFLAGS and LDFLAGS to
the following:
CXXFLAGS=`fltk-config --cxxflags`
LDFLAGS=`fltk-config --ldflags`
and continue with the makefile dance from there.
HTH,
Ben
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk