In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
kj <so***@987jk.com.invalid> writes: Pardon the dumb question, but how does one link against two libraries
that both define functions foo (for example), having different
meanings and different prototypes?
There is no portable way to do this other than changing one of the
names (which requires recompiling the library from source).
It goes further than that: there is no portable way of linking
libraries. Anything having to do with libraries is beyond the
scope of the C standard. All that is certain is that there will
be *some* mechanism which provides a way of translating
multiple source files and providing definitions for the standard
library functions -- there isn't even any certainty that there
will be a C library as such. [Sounds strange, but then again C
is a language which doesn't even promise that the standard header
files are in text format...]
--
Any sufficiently old bug becomes a feature.