Operating System - HP-UX
1823986 Members
4278 Online
109667 Solutions
New Discussion

Linking issues while compiling a simple c++ module in HP-UX

 
Dennis Handly
Acclaimed Contributor

Re: Runtime unsats with a simple aC++ shlib as Apache plugin

>In C it is working fine but in C++ it is not (not able to call the service through client)

 

Is there anyway you can test this out without using Apache?

I.e. dynamically load this into a C program add see if you can call the methods?

Also, can you add printf calls in your C++ functions to see where you get?

 

>We can see that it contains both the function add and subtract and name mangling is also taken care of.

I see mangling, no "taken care of".  Who calls serve_ns__add and serve_ns__sub?

(You do know that is is illegal to use "__" in a user defined name.  That's reserved for the implementation.)

 

>What could be the issue now?

 

No clue.  You need to get the source to Apache and see where the error occurs and what it means.