Did you try putting a semicolon after the database name, or is this exactly
what was compiled? As written it won't compile for me, but compiles and
works just fine with the terminator. (I did, of course, change the
database name.)
ESQL/C 7.20.UC2, ODS 7.22.UC1
David
denicomp@compuserve.com on 11/17/97 07:32:22 PM
Please respond to denicomp@compuserve.com
To: informix-list@rmy.emory.edu
cc: (bcc: David Coburn/ISG/WVUS/WorldVision)
Subject: Can't connect with ESQL/C on SCO Open Server
I have installed Informix SE 7.22 and ESQL/C 7.22 on an SCO Open Server
system.
If I use any Informix utilities (dbaccess for example), I can access the
database with no problem.
However, I cannot with any programs I compile with ESQL/C. I get error
-25574 - Network driver cannot open the network device.
$INFORMIXDIR/etc/sq
lhosts is using setlitcp as the protocol.
For example, I created a very simple ESQL/C program:
#include <stdio.h>
main()
{
$database acct
printf("sqlca.sqlcode = %d\\n",sqlca.sqlcode);
}
I compiled with both "esql -o db db.ec" and "esql -static -o db db.ec".
Neither work. They get the error -25574.
I doubt that it is a configuration problem, since I can connect to the
database with no problem with dbaccess and do queries, etc.
Any ideas?