Restrictions on Declaring an External C++ Function - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
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.