Restrictions on Declaring an External C++ Function - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

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 Teradata Vantage™ - SQL External Routine Programming , B035-1147 for details.