Operating System - HP-UX
1833461 Members
3013 Online
110052 Solutions
New Discussion

where is cxxshl_load. I use hp-ux 11.0 and compiler aCC 3.25.

 
jack_8
Contributor

where is cxxshl_load. I use hp-ux 11.0 and compiler aCC 3.25.

I developed a dynamic library using c++. when I load it and want to get the function using shl_findsym function. I found I must put the function name decorated as the argument. I want to know is there any methods to avoid it.
for example:
void print() function is in dynamic library ab.sl .
Is there any methods let me write:
shl_findsym("ab.sl", "print",...);
1 REPLY 1
Andy Bennett
Valued Contributor

Re: where is cxxshl_load. I use hp-ux 11.0 and compiler aCC 3.25.

There is no way to find a C++ mangled name using just its function name in this way. The only way to provide this type of call is to compile the library with all the functions for which you wish to use simple names as 'extern "C"'.