> I was looking at the fltk-config for my Debian distro. It 
> outputs the following libraries for dynamic linking: pthread, 
> dl, m ,Xext, X11. Are these going to me the same ones for 
> other linux distros? 

Yes, almost certainly.

This question (or at least, one very like it) came up quite recently. I
think both Greg and I replied, and I went into long rambling answer
mode, but if you trawl through the recent archives you might find it
informative. Or possibly sleep inducing...

Either way, the summary is:

If it were me, I would link fltk statically to your app, but use dynamic
linking of any system provided libs.
For pthread, X, dl, etc., you *definitely* want to be using the same
version the target platform has, so you are better off linking
dynamically.

However, for any lib that the target *might not have*, and by that I
mean fltk, or possibly even your favourite version of png, zlib, jpeg,
etc..., or any "non-standard" lib you might be using where you can't
safely assume that the target will have that lib installed, then static
linking is the "easy" solution, in that it removes the need for any sort
of installer mechanism (to check for and install any missing libs...)

Hmm, that ended up being long for a summary...



> If I make a binary wiht static linking 
> of the fltk part, should it work pretty much for everybody?

Yes, pretty much.

-- 
Ian



SELEX Sensors and Airborne Systems Limited
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 mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to