Embedded SQL and C++ - 06-02-2011 , 07:45 AM
I am having a problem linking C++ code with embedded SQL.
If I use the sqlca variable in multithreaded mode sqlca is defined as
a function returning a pointer to the sqlca.
In C++ we get:
extern IISQLCA *IIsqlca();
define sqlca (*(IIsqlca()))
However, with C++ programs, I get a unresolved symbol for this
function since the linker is assuming C++ linkage.
Without having to manually edit all the C++ files, is there a good
solution to this?