Re: link error - xunlink unsatisfied



programmer <programmer@xxxxxxxxxxx> wrote:
When I link my program using the command:
gcc -o fe -lpthread fe.o mylib.sl
I get the error:
/usr/ccs/bin/ld: Unsatisfied symbols:
xunlink (code)

Does anyone know why this is happening?

uname -a
HP-UX hpux B.11.11 U 9000/800 892008281 unlimited-user license

I'm not a compiler guy but I think I've seen enough of their responses
to take a stab at it.

First, IIRC system libraries should be at the end of the links, so the
-lpthread should be at the end, not the beginning.

Second, the message means that something - either in fe, mylib or
those things on which they depend is tryng to reference a routine
called xunlink and the linker is not able to resolve that reference
for them.

So, for now, first fix-up the link-order. If the problem persists,
find who is trying to call xunlink and work from there.

rick jones
--
The computing industry isn't as much a game of "Follow The Leader" as
it is one of "Ring Around the Rosy" or perhaps "Duck Duck Goose."
- Rick Jones
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
.