Operating System - HP-UX
1748093 Members
5913 Online
108758 Solutions
New Discussion юеВ

Unsatisfied code symbol 'opc_connect' in load module

 

Unsatisfied code symbol 'opc_connect' in load module

Hi,

System_Info : HP-UX BAVASOM1 B.11.31 U ia64
Using: cc compiler

I complied opc_templ_assign.c program, and when I run the same it would display this error, please help

root@mysys->./opc_templ_assign
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'opc_connect' in load module './opc_templ_assign'.
Killed

I used the following options to compile, let me know if that is wrong / correct!

/usr/bin/cc opc_tmpl_cfg.c -c -o opc_tmpl_cfg.o -I /opt/OV/include

then

/usr/bin/cc opc_templ_assign.o -o opc_templ_assign -R/opt/OV/lib -L/opt/OV/lib

Thanks,
Praveen

3 REPLIES 3

Re: Unsatisfied code symbol 'opc_connect' in load module

You need to use -l to link to your opc library. Something like:
cc opc_templ_assign.o -o opc_templ_assign -lopc -L/opt/OV/lib

How is opc_tmpl_cfg.o related to opc_templ_assign.o?

More information about -L:
http://docs.hp.com/en/14487/options.htm#opt-Ldirectory

What does -R mean? There is no option called -R:
http://docs.hp.com/en/14487/options.htm

Re: Unsatisfied code symbol 'opc_connect' in load module

you will have to find out where is the symbol 'opc_connect' defined. some shared library should be defining it. likely chances are that some library under /opt/OV/lib/ may be defining this symbol. for example, if a library by name libopccon.so is defining this symbol, then along with the command line you are using, you have to add "-lopccon". and this should come after the -L /opt/OV/lib. basically -l should be after -L. see ld(1) manpage for more details.

Re: Unsatisfied code symbol 'opc_connect' in load module


Did my suggestions (above) helped you to resolve the issue?