Re: C compiler for ESQLC
Posted in 1993
In article <C7wBvw.416@iatge.uucp>, paul@iatge.uucp (Hansjuergen Paul) writes: > >Dear Netters, > >we are still new to writing ESQLC programs, so forgive me if >this is a silly question... > >Is there a way to make ESQL using another C compiler than "cc"? >E.g. something like "gcc"? The documentation says something about >enviroment variables like INFORMIXCOB, INFORMIXFORTRAN etc. but >INFORMIXC is neither documented nor does it work. CC is ignored. > I guess one way to do that is to edit $INFORMIXDIR/bin/esql and change CC="cc" to CC="gcc" Has anyone come up with other solutions? >We tried to let "gcc" work on the generated .c files, but although we used >-lsql -los -lgen and -I$INFORMIXDIR/incl/esql we had no success because >of error messages such as > >ld: Undefined symbol > _rdownshift > _ggetenv >collect: ld returned 2 exit status > >Any ideas? > You may want to try this: -L$INFORMIXDIR/lib/esql -lsql -lgen -los. Note the sequence of libraries. It may be because some functions in libgen.a call other functions in libos.a, therefore -los ought be after -lgen for it to work. Good luck! Pei-yu Huang