Unsatified symbol with ld ( linker) (75 Views)
Reply
Occasional Contributor
adityahuawei
Posts: 5
Registered: ‎08-16-2010
Message 1 of 4 (75 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
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,079
Registered: ‎02-23-2005
Message 2 of 4 (75 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).
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,894
Registered: ‎03-06-2006
Message 3 of 4 (75 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.
Please use plain text.
Advisor
Pramod Kumar M
Posts: 24
Registered: ‎04-03-2006
Message 4 of 4 (75 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.
Please use plain text.
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