Re: HELP! ESQL program crashes
Posted in 1995
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
johnl@informix.com (Jonathan Leffler) wrote: >1. Was 5.02.UC1 ported for A.09.03 or was it for a later version of the > o/s? If for A.09.04, then the mismatch may be the cause of the > trouble. It is extremely difficult to get any information on esql use at this university. > And are you referring to Informix-ESQL/C? Yes. > There is no > 5.02.UC1 Informix-SQL (4.15.UC1 is the highest pre-5 release, and > 6.00.UE1 is the lowest poset-5 release, as of today). Our version INFORMIX-SQL Version 4.12.UC1 Thanks for the help. The code I posted was extremely stripped down. A bus error forces a core dump at the declare line. Here's a back trace from gdb. Program received signal SIGBUS, Bus error. 0x7affed30 in _ungetc () (gdb) #1 0x7affba34 in _doscan () (gdb) #2 0x7afe4e20 in _sscanf () (gdb) #3 0x4f04 in _iqlocate_cursor () (gdb) #4 0x3ea8 in get_mtg_attendee () at schedule.ec:34 (gdb) Also, it isn't a cursor problem our real cursor is named something else. One other bit of info. If I compile with esql -Aa filename.ec -o target then I get a cursor perfectly. My problem is that I need either a .c or .o to link with g++.