Unsatified symbol with ld ( linker) (121 Views)
Reply
Occasional Contributor
adityahuawei
Posts: 5
Registered: ‎08-16-2010
Message 1 of 4 (121 Views)

Unsatified symbol with ld ( linker)

Hi everybody,

While porting our software from suselinux to HP-UX we are having some linking errors which says

Unsatisfied symbol "function_name" in file library_name.a [ filename ]

"function_name" are user defined functions.
Can somebody throw some light on why these functions are termed as unstaisfied symbols.

Thanks in advance
Honored Contributor
Steven Schweda
Posts: 9,096
Registered: ‎02-23-2005
Message 2 of 4 (121 Views)

Re: Unsatified symbol with ld ( linker)

> Can somebody throw some light on why these
> functions are termed as unstaisfied symbols.

The linker is not seeing them?

Perhaps you can throw some light on what
you're actually doing. "porting our
software" is not a very useful description of
what you compiled (or how, using what), or
what you're trying to link (or how), or what,
exactly, happened when you did whatever you
did, or where these functions might be
defined.

> Unsatisfied symbol "function_name" in file library_name.a [ filename ]

Sounds to me like "some problem" in
"some_file" (somewhere).
Acclaimed Contributor
Dennis Handly
Posts: 25,287
Registered: ‎03-06-2006
Message 3 of 4 (121 Views)

Re: Unsatified symbol with ld ( linker)

>Can somebody throw some light on why these functions are termed as unsatisfied symbols.

You are calling a function that has no definition. Where do you think it should be defined?

The function is used in library_name.a in object file filename.o.

If you claim the function is really defined, it could be a mismatch in extern "C".

It would have helped if you had provided the exact message.
Advisor
Pramod Kumar M
Posts: 24
Registered: ‎04-03-2006
Message 4 of 4 (121 Views)

Re: Unsatified symbol with ld ( linker)

Hi,

While linking definition of the symbols should be available to the linker. Looks you might have missed including those while linking.

Check for the files where those symbols are defined and include them.

-Pramod.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.