ORA-06522 problem
Hi!
I and my college like to use a c++ program on a HP-UX 11 and Oracle 10gR2
but every time when we call our simple test c++ function from pl/sql as an external function we get an error.
Earlier we used 9i and we had not problem by the runing.
Our simple program:
extern "C"
{
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void test(char *ostr)
{
char *p;
p = getenv("CSILOGDIR");
if (p == NULL)
strcpy(ostr, "");
else
strcpy(ostr, p);
return;
}
}
We create a makesl file:
echo $CppComp
$CppComp dirt.cpp
ld -b -t -v -o dirt.sl dirt.o
We run this makesl on the HP-UX 11 and it creates the dirt.o and dirt.sl files.
When we create a PL/SQL stored procedure which call the test function
and run it we get the next error:
ORA-06520:PL/SQL: Error loading external library
ORA-06522:Unsatisfied code symbol '__cxa_personality_routine' in .../dirt.sl
...
Can somebody help?
Atesz