Re: Anyone using GCC with ESQL/C ?
Posted in 1994
B.G. Mahesh (mahesh@source.asset.com) wrote: : I am using Informix 5.03 [Online 5.03 and ESQL/C 5.03] : on a HPUX 9.05 system. I am able to compile/link/execute : the sample programs of ESQL/C using the HP cc compiler. : But if I use gcc2.5.8 I am able to compile/link [with : some warnings] but when I execute the program it dumps : core. I was wondering if anyone isusing gcc with esql/C. : I have to use an ANSI C compiler, so I have to use gcc. We use the gcc compiler here. I have encountered this eradic dumping of core twice before. In both cases it was corrected by: Edit the shell script $INFORMIXDIR/bin/esql. Change the referances to "cc" to "gcc". Set the CC variable if not already set. This will allow you to switch back to cc if you need to. The following is a diff that shows where we made changes: 28c30,35 < CC="cc" --- > #CC="cc" > if [ -z "$CC" ] > then > CC=gcc > export CC > fi 103c112 < CC="cc -g" --- > CC="$CC -g" 108c117 < CC="cc -g" --- > CC="$CC -g" 113c122 < CC="cc -g" --- > CC="$CC -g" -------End of Diff -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Jason Restad | jrestad@ftc.scs.ag.gov USDA, Soil Conservation Service | jasr@ftc.scs.ag.gov 2625 Redwing Rd., Suite 110 | Ft. Collins, Colorado 80526 |