Greg Ercolano wrote:
> Steve Bennett wrote:
>> So, following Greg's suggestion, I turned off .SILENT and checked the
>> command line output. There were a few irrelevant differences, but the one
>> which really stood out was that the fact that the test folder version was
>> linking statically and directly to "../lib/libfltk.a" while my version was
>> linking dynamically with "-lfltk".
>>
>> I changed my makefile to link using "-l:libfltk.a" which forces a static
>> link to the library,
>> and it now works. Why that should have made any difference, however, is
>> another question entirely.
>
> Check the date stamps on the dynamic lib vs. the static lib.
> Sounds like maybe one was built at a different time, possibly
> with different build flags that had xft turned off.
Also, try to determine where the linker is getting its paths
to the libs from.
In the above, I'm seeing -l:libfltk.a, but I'm not seeing the
-L that sets the path indicating where to get it from, which
might mean it's getting it from /usr/lib/libfltk* instead of
your fltk source dir (ie. /usr/local/src/fltk-x.x.x/lib)
If you have a problem with libs, you might have a problem
with include's as well, ie. compiling against include files
that might not match the libs you're linking to.
In my case, I /never/ do a 'make install' of FLTK on my systems,
so that I don't pollute the /usr/lib dir with files that make my
system act differently than other user's machines that won't have
FLTK installed, so I can see the same behavior of my apps the users will.
Also, I often have multiple versions of FLTK on my systems, so I always
compile/link with absolute paths.
I don't use dynamic libs for FLTK, I statically link FLTK so that
when I release binaries to users, they don't have to have to install
any special .so's, and there's no possibility of 'incompatible' .so's
or strange behaviors they see that I won't see due to "out of date" .so's.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk