Re: esql++ question
Posted in 1998
Topics: Installation, Setup & Upgrades, Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL, Server Administration, Licensing & Editions, Platform-Specific Issues
% make clean all
rm -f testapp testmain.o testsub.o testmain.c testsub.c testmain.cc
testsub.cc a.out core *.rej *.orig
INFORMIXC="g++ -g -R/usr/acd/informix/lib:/usr/acd/informix/lib/esql"esql++ -DESQLC_VERSION=914 -c testmain.ec
INFORMIXC="g++ -g -R/usr/acd/informix/lib:/usr/acd/informix/lib/esql"esql++ -DESQLC_VERSION=914 -c testsub.ec
INFORMIXC="g++ -g -R/usr/acd/informix/lib:/usr/acd/informix/lib/esql"esql++ -DESQLC_VERSION=914 -o testapp testmain.o testsub.o
% ./testapp
ESQL/C++ Test Application -- compiled with ESQL/C Version 914
SQL = -369
% uname -a
SunOS fulcrum 5.6 Generic_105181-04 sun4u sparc SUNW,Ultra-1
%
Thanks! I take this to our DBA.
ww
Jonathan Leffler wrote:
>
> On Fri, 25 Sep 1998, William Warner wrote:
> > I am trying to build in just a little bit of informix into a heirarchy
> > of c++ classes I'm developing. I'm trying to use Jonathan Leffler's
> > esql++ approach (http://www.iiug.org/techinfo/faq/ifaqn.htm#APPN). I
> > have successfully compiled testapp, but it fails with ISAM error -369
> > when executing the line
> >
> > EXEC SQL DATABASE stores;
> >
> > The minus sign on the error tells me something is way off here, but I
> > can't see through it!
>
> Negative error numbers are normal -- positive ones would be abnormal.
>
> -369 Invalid serial number. Please consult your installation
> instructions.
>
> Some error has been made in the installation of your Informix
> product(s). Check the value in the SQLEXEC environment variable
> (for database server versions prior to 6.0) and INFORMIXDIR
> environment variable; then consult the person who installed the
> software, and review the installation instructions.
>
> Something somewhere isn't installed correctly, as it says. Did you
> enable your ESQL/C installation? It isn't enough to copy it onto the
> disk -- you also have to licence it.
>
> And which platform and version are you using?
>
> > On a related topic, do the c++ object interface libraries come in a
> > version compatible with gcc-2.8.1, platform sparc solaris 2.6? Ours seem
> > to be set up for the Sun C++ compiler, which we don't have.
>
> No -- you have to use the Sun compiler to use the C++ libraries.
>
> 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