Re: Preprocessing C++ With ESQL/C?
Posted in 1995
In article <45ctbh$f6o@usenet.kornet.nm.kr>, jack@soback.kornet.nm.kr says... > /bin/ld: Unsatisfied symbols: > -iqdbclose(void) (code) > -iqfree(_sqcursor*) (code) > ... > ... > ... > >I think it is different coding method, c & c++. You must have a more recent version of sqlhdr.h than we do. We had to manually declare all those internal SQL functions in one of our header files; sqlhdr.h didn't have any function declarations in it with Informix 5.03. But I think this problem is caused by the C++ compiler's name mangling. If you enclose the entire sqlhdr.h file in: #if defined(__cplusplus) extern "C" { #endif {bulk of sqlhdr.h here} #if defined(__cplusplus) } #endif it may work. -- William Harris william@carsinfo.com CARS Information Systems 4000 Executive Park Drive Cincinnati, OH (USA) 45241