Restrictions on Declaring an External C++ Procedure
If you specify CPP in the Language Clause, then you must declare the called C++ procedure
extern “C” to ensure that the procedure name is not converted to an overloaded C++ name, for
void my_cpp(long int *input_int, long int *result, char sqlstate)
See SQL External Routine Programming for details.