On 14 Nov 2009, at 13:39, Loic wrote: > I have a problem in linking my project to fltk under Max OS X: > FLTK (1.1.9) source are shipped with my application package and is > first compiled. > Then I compile and link my executable against FLTK. > > No problem under linux and windows. > But under mac OSX, I have a puzzling problem... > I have the following errors : > ld: table of contents for archive: /Users/madgraph/loic_Debug/ > FROG_2_0_2/frog/Lib/libfltk_jpeg.a is out of date; rerun ranlib(1) > (can't load from it) > ld: table of contents for archive: /Users/madgraph/loic_Debug/ > FROG_2_0_2/frog/Lib/libfltk_png.a is out of date; rerun ranlib(1) > (can't load from it) > ld: table of contents for archive: /Users/madgraph/loic_Debug/ > FROG_2_0_2/frog/Lib/libfltk_z.a is out of date; rerun ranlib(1) > (can't load from it)
On OSX this is normal. Annoying, but normal. The OSX linker knows the path a library was linked at, and if the library is moved to some other path, it needs to be updated to reflect the new location. You do this by running ranlib on the lib file once it is copied to the new location (as suggested in the error message.) I don't know why they chose to do that with their linker, but that's the way it is. > also I noticed that no .dylib files are created for jpeg, z and png > lib libraries... Is that normal? Are you building the dynamic libs? The fltk default is to only generate static libs, so I would not expect the dylibs to be generated unless you have gone out of your way to generate them specifically. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

