On Dec 17, 2007, at 3:13 PM, Jeff Squyres wrote:
>> If you statically link it in and don't export the symbols.. then you
>> shouldn't even have to worry about prefixes since they become
>> "invisible"....
>
> How so?
>
> None of libev's symbols are "static" (which would kinda make it
> difficult to call libev functions ;-) ), and therefore they are global
> to the entire process who links against libev.
I neglected to mention: DSOs and RTLD_LOCAL make the situation much
less clear. However, one common case:
gcc my_app.c -lmpi -o my_app
runs into the problems I mentioned in previous mails if libmpi.so has
one version of libev embedded and the system has another version of
libev installed.
Specifically: if libev becomes popular and is picked up by the Linux
distros, this kind of version drift is going to become inevitable
(especially if you encourage embedding libev). Please don't become
the next libltdl! ;-)
--
Jeff Squyres
Cisco Systems
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev