Well, the first step is to take a copy of the esql script from
$INFORMIXDIR/bin, and sanitize it so it works with GCC instead of xls.
That means remove -qlanglevel=ansi or whatever other options GCC
Then, when you've demonstrated you can compile and run simple ESQL/C
programs using the hacked esql script, you can consider trying to
compile dostats with it.
If you need a simple ESQL/C program, look for esqlbasic.ec in the
DBD::Informix source code.
Jonathan Leffler #include <disclaimer.h>
Email: XXXX@XXXXX.COM , XXXX@XXXXX.COM
Guardian of DBD::Informix v2005.02 -- http://www.yqcomputer.com/