Languages and Scripting
Showing results for
Search instead for
Do you mean

## Unsatified symbol with ld ( linker)

Highlighted
Occasional Contributor

# 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
3 REPLIES
Honored Contributor

## 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

## 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

## 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.