C++ and ESQL error
Posted in 1999
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Hi there,
I try to use C++ and ESQL with esql++,
mrpibb: make -f Makefile
Makefile:26: warning: overriding commands for target `.cc.o'
Makefile:23: warning: ignoring old commands for target `.cc.o'
INFORMIXC="g++" esql++ -c testmain.ecrm -f testmain.c testmain.cc
INFORMIXC="g++" esql++ -c testsub.ecrm -f testsub.c testsub.cc
g++ -c testcpp.cc
cc -c testc.c -o testc.o
INFORMIXC="g++" esql++ -o testapp testmain.o testsub.o testcpp.o testc.omrpibb:
mrpibb: ./testapp
ESQL/C++ Test Application -- compiled with ESQL/C Version 916
SQL = -329, ISAM = -111
mrpibb:
What's wrong?
Alan
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
scotts@tibco.com wrote:
>
> Hi there,
>
> I try to use C++ and ESQL with esql++,
>
> mrpibb: make -f Makefile
> Makefile:26: warning: overriding commands for target `.cc.o'
> Makefile:23: warning: ignoring old commands for target `.cc.o'
> INFORMIXC="g++" esql++ -c testmain.ec> rm -f testmain.c testmain.cc
> INFORMIXC="g++" esql++ -c testsub.ec> rm -f testsub.c testsub.cc
> g++ -c testcpp.cc
> cc -c testc.c -o testc.o
> INFORMIXC="g++" esql++ -o testapp testmain.o testsub.o testcpp.o testc.o> mrpibb:
> mrpibb: ./testapp
> ESQL/C++ Test Application -- compiled with ESQL/C Version 916
> SQL = -329, ISAM = -111
> mrpibb:
>
> What's wrong?
Error -329 is cannot open database; the ISAM error would tell you
why, but it is probably that there's no database of the given name.
I think the code is looking for stores or stores7 and you don't
have one. Try looking in the testapp source code. It should be
fairly easy to spot.
You can check the error numbers with:
finderr -329 -111
--
Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN
#include <disclaimer.h>