>
> > Experience with FLTK and MS Visual Studio 10 Express (free version)
>
> - Some useful notes on building at the command line with the MS tools,
> though I'd strongly advocate that the OP also give mingw/Msys a try,
> since he seems (like me) not to be keen on the VS IDE.
> The mingw/Msys approach is much more "normal" in that it uses
> configure/make and therefore pretty much Just Works without any need to
> hand-tweak the Makefiles.
>
>
>
>
>
> SELEX Galileo Ltd
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
> 14 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.
> ********************************************************************
>
Many thanks for your note.
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:
# fltk-config --compile mandelbrot.cxx gives:
# g++ -I/usr/local/include -I/usr/local/include/FL/images
# -mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
# -o 'mandelbrot' 'mandelbrot.cxx'
# -mwindows /usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32
#
CC=g++
INC=-I/usr/local/include -I/usr/local/include/FL/images
FLAGS=-mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
LINK=-mwindows /usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32
OBJS=mandelbrot.o mandelbrot_ui.o
mandelbrot : $(OBJS)
$(CC) -o mandelbrot $(OBJS) $(LINK)
mandelbrot.o :
$(CC) -c $(INC) $(FLAGS) mandelbrot.cxx
mandelbrot_ui.o :
$(CC) -c $(INC) $(FLAGS) mandelbrot_ui.cxx
clean :
rm *.exe $(OBJS)
This works but seems a bit cumbersome having to
call out the .o targets by hand.
There must be a better way and I am really rusty
with make.
By the way what does OP mean in
'that the OP also give mingw/Msys a try'
Many thanks.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk