15.00 - Restrictions on Declaring an External C++ Function - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

prodname
Teradata Database
vrm_release
15.00
category
Programming Reference
featnum
B035-1184-015K

Restrictions on Declaring an External C++ Function

If you specify CPP in the Language Clause, then you must declare the main C++ function as extern “C” to ensure that the function name is not converted to an overloaded C++ name, for example:

extern “C”
void my_cpp(long int *input_int, long int *result, char sqlstate[6])
{

See SQL External Routine Programming for details.