ESQL/C with C++ compilter on HPUX.
Posted in 1998
> Question: > Can we use the HPUX C++ compiler to compile *.c file > generated by 'esql' ??? > > > Problem: > We are using 'esql -e -I/....' to precompile *.ec files, and then > use the 'CC' compiler to compile the generated *.c files. > We set the INFORMIXC environment variable to /usr/bin/CC. > Versions: > preprocessor - INFORMIX-ESQL Version 7.20.UC2 > OS - HP-UX B.10.20 > compiler - HP C++ HPCPLUSPLUS A.10.22 > > > /************************************************************************* > *************************************************************/ > > esql -e -I/include -I/work/informix/incl/esql > -I/work/tuxedo63/include vwinfoma.ec > > CC -DNOWHAT=1 -I/include -I/work/informix/incl/esql > -I/work/tuxedo63/include -g -w -Aa -Ae D_INCLUDE_POSIX_SOURCE > -D_INCLUDE_XOPEN_SOURCE -D_INCLUDE_XOPEN_SOURCE_EXTENDED > -D_INCLUDE_HPUX_SOURCE -z +z -c vwinfoma.c > > > /************************************************************************* > *************************************************************/ > > Error: > Compiler complains about C calls to functions such as '_iqcdcl' , > '_iqlocate_cursor' in the generated *.c file that it could not find those > function definitions. > > thanks.