Operating System - HP-UX
1752754 Members
4621 Online
108789 Solutions
New Discussion юеВ

/usr/ccs/bin/ld: Unsatisfied Symbols

 
SOLVED
Go to solution
Joseph A Benaiah_1
Regular Advisor

/usr/ccs/bin/ld: Unsatisfied Symbols

Dear All,

I am trying to compie the following program using the HP bundled C compiler:

#include
#include
#include
#include
#include
#include
#include
main()
{
if ( iscomsec() == 1 )
{
printf("System is TRUSTED\n");
}
}

When you compile it, the following error is generated:

/usr/ccs/bin/ld: Unsatisfied symbols
iscomsec(code)

The libsec.sl library file is on the machine so does anyone have any ideas on the problem could be.

Cheers,

Joseph
2 REPLIES 2
Dietmar Konermann
Honored Contributor
Solution

Re: /usr/ccs/bin/ld: Unsatisfied Symbols

Hi, Joseph!

Try to tell the linker that the libsec is there... add '-lsec' the the ld options.

Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Joseph A Benaiah_1
Regular Advisor

Re: /usr/ccs/bin/ld: Unsatisfied Symbols

Dietmar,

Thanks for that, it worked a treat.

Cheers,

Joseph.