TalGloz <glozmantal@xxxxxxxxx> writes: > The error this time for PostgreSQL is: > *ERROR: could not find function information for function "sum_of_numbers" > HINT: SQL-callable functions need an accompanying > PG_FUNCTION_INFO_V1(funcname). > SQL state: 42883* Probably need extern "C" around the PG_FUNCTION_INFO_V1 macro, too. Both those macros produce C function definitions under the hood, and said functions need to not be name-mangled by C++. regards, tom lane