> > Is it best I just hold off for now, or are trivial fixes OK?
> 
> Please hold off until Wednesday. I am currently shuffling 
> files around a lot. I am relatively certain that all files 
> will then be in their final position, and unless there are 
> grave concerns, will remain there.
> 
> After that, please do fix things in any way you like 

Ah, OK. Will do.

In the meantime, there's something awry with the generated Makefiles, I
don't know if you've seen this in the OSX tests or not?

For example, on WinXP I get:

Linking file_chooser.exe...
../lib/libfltk_images.a(Fl_File_Icon2.o)(.text+0x185c):Fl_File_Icon2.cxx
: undefined reference to `fltk3::filename_ext(char const*)'
../lib/libfltk_images.a(Fl_File_Icon2.o)(.text+0x1d75):Fl_File_Icon2.cxx
: undefined reference to `fltk3::filename_ext(char const*)'
collect2: ld returned 1 exit status
make[1]: *** [file_chooser.exe] Error 1


If I suppress the .SILENT in the makeinclude that becomes:

Linking file_chooser.exe...
g++  -O3 -Wall -Wunused -Wno-format-y2k  -fno-exceptions
-fno-strict-aliasing -mwindows -o file_chooser.exe file_chooser.o
../lib/libfltk.a ../lib/libfltk_images.a ../lib/libfltk_png.a
../lib/libfltk_jpeg.a ../lib/libfltk_zlib.a -lole32 -luuid -lcomctl32
../lib/libfltk_images.a(Fl_File_Icon2.o)(.text+0x185c):Fl_File_Icon2.cxx
: undefined reference to `fltk3::filename_ext(char const*)'
../lib/libfltk_images.a(Fl_File_Icon2.o)(.text+0x1d75):Fl_File_Icon2.cxx
: undefined reference to `fltk3::filename_ext(char const*)'
collect2: ld returned 1 exit status
make[1]: *** [file_chooser.exe] Error 1

And it is apparent that the fltk libs have been linked in the "wrong"
order, since libfltk.a needs to come after libfltk_images.a here.



The test Makefile now has:

file_chooser$(EXEEXT): file_chooser.o $(FLTK_LIB_NAME)
$(FLTK_IMAGES_LIB_NAME) $(FLTK_PNG_LIB_NAME) $(FLTK_JPEG_LIB_NAME)
$(FLTK_ZLIB_LIB_NAME)
        echo Linking $@...
        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ file_chooser.o $(LINK_FLTK)
$(LINK_FLTK_IMAGES) $(LINK_FLTK_PNG) $(LINK_FLTK_JPEG) $(LINK_FLTK_ZLIB)
$(LDLIBS)


Which does look to be calling out the fltk libs in the "wrong" order, I
guess that's a feature of the new build system that still needs
fettling?

Cheers,
-- 
Ian




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-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to