Re: esql++ question
Posted in 1998
On Fri, 25 Sep 1998, William Warner wrote:
> Alright.
Let's have a second go...
My first response was erroneous to the point of irelevance - sorry!!!
> Now I'm on a licensed host. It looks like there's some kind of version
> mismatch with the header files. In Makefile, I've tried setting
> ESQL_VERSION to 500, 600 and 700, but that didn't work.
Set ESQLC_VERSION=724, to match what you get from esql -V.
But you've done that...
The problem is that sqliapi.h is a ClientSDK 2.01 (ESQL/C 9.14)
header, and should not be present in the ESQL/C 7.24 directory.
Are you sure that your $INFORMIXDIR is pointing at the 7.24 ESQL/C?
Or are you trying to use 9.14 ESQL/C but your PATH is set wrong and
you're picking up a 7.24 version?
Yours,
Jonathan Leffler (jleffler@informix.com) #include <witticism.h>
Guardian of DBD::Informix v0.60 -- http://www.perl.com/CPAN
Informix IDN for D4GL & Linux -- http://www.informix.com/idn
> Any additional comments?
>
> ww
>
> $ /home/billw/c++/faq> /home/billw/bin/g++ -v> Reading specs from
> /home/billw/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/specs
> gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
> $ /home/billw/c++/faq> echo $INFORMIXDIR
> /home/billw/informix
> $ /home/billw/c++/faq> $INFORMIXDIR/bin/esql -V
> INFORMIX-ESQL Version 7.24.UC5
> Software Serial Number ###########
> $ /home/billw/c++/faq> make clean all> rm -f testapp testmain.o testsub.o testmain.c testsub.c testmain.cc
> testsub.cc a.out core *.rej *.orig
> INFORMIXC="/home/billw/bin/g++ -g -O2> -R/home/billw/informix/lib:/home/billw/informix/lib/esql" esql++
> -DESQLC_VERSION=724 -c testmain.ec
> In file included from testapp.h:18,
> from testmain.ec:14:
> /home/billw/informix/incl/esql/sqliapi.h:37: syntax error before `int'
> [...]
> /home/billw/informix/incl/esql/sqliapi.h:102: syntax error before `int'
> *** Error code 1
> make: Fatal error: Command failed for target `testmain.o'