Re: Help linking ESQL/C library to C++ module
Posted in 1998
M. Axworthy wrote: > Can anyone help out on this? > > I am creating a library of ESQL/C functions that will be wrappered by a > C++ class. The main code is all C++. I'm able to compile the library OK > but when I link it to the C++ code I get link errors for the Informix > entrypoints/functions - due to name mangling. > > I can't include the missing Informix entrypoints/lib functions in a > extern "C" { } declaration since I don't know the calling arguments. > Besides, even if that worked - it's sloppy and a hack. > > There has to be a way to get ESQL/C to integrate with C++ code - right? > > Any suggestions gratefully appreciated. Have *you* looked at the IIUG website? I already answered a similar question from someone else with pointers to the ESQL/C and C++ information there. Also, 7.24 (?7.23) has some built-in support for .ecc files. I'm not convinced that support is complete; it uses the C compiler for linking which is not a good idea when there's any C++ in the system. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix -- see http://www.perl.com/CPAN #include <disclaimer.h>