On Thu, 10 Dec 2020, Samuel Sieb wrote:
On 12/10/20 7:47 PM, Michael Hennebry wrote:
> Using gcc 10.2.1 -g -O, I compiled and linkeds
> a program using multiple libraries.
> Some symbols are defined by more than one library.
That sounds like a really bad situation.
One library is supposed to be a new improved
version of parts of the other library.
My understanding is that when shared libraries are involved,
the rules can get complicated.
That I'm a newbie with these libraries does not help either.
> I would like to discover which symbols came from which library.
> What, if anything, is the incantation to do that?
Your question is not very clear. If you want to see the symbols in a
particular library, I think "nm" is the tool for that.
If symbol fred is defined in library G as well as library in B,
I'd like to know which symbol my executable picked up.
nm does not do that.
--
Michael hennebry(a)web.cs.ndsu.NoDak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
-- someeecards