Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Feb 2011 17:07:58 +0000
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        freebsd-questions@freebsd.org
Subject:   same function name in multiple archives - bad idea?
Message-ID:  <20110201170757.GA5484@mech-cluster241.men.bris.ac.uk>

next in thread | raw e-mail | index | archive | help
Is it wrong to have functions with the same name
in multiple archives? E.g:

% ar -t /usr/local/lib/libslatec.a | grep fdump.o
fdump.o
% ar -t /usr/local/lib/libcmlib.a | grep fdump.o
fdump.o

Which "fdump" function will be used if I then link
against -larchive1.a -larchive2.a?

And is there an easy way to find functions belonging
in multiple archives?

Many thanks
Anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110201170757.GA5484>