David,
Thanks. The sqlhosts file is OK because sqlexecd starts and dbaccess works.
It contains "setlitcp" as the release notes specify.
I have discovered a solution, although I don't know why I needed to do it.
I changed the $INFORMIXDIR/bin/esql script to NOT link in
$INFORMIXDIR/lib/netstub.a and instead link with "-lnsl". Now things that I
compile work also.
I wish I knew why this was necessary and things didn't work out of the box,
but at least things work now.
David Williams wrote in message ...
>In article <3472084b.0@kds5.kivex.com>, Joe <joe@colsys.com> writes
>>I have Informix SE 7.22 and ESQL/C 7.22 installed on an SCO Open Server
>>system.
>>
>>I can use dbaccess to get to the database.
>>
>>However, try to run an ESQL/C program I compiled on the system, I get
>>error -25574 (Network drive cannot open the network device) trying to
>>connect to the database.
>>
>>For example, a simple program like this fails with the above error:
>>
>>#include <stdio.h>
>>
>>main()
>>{
>>$database acct;
>>printf("%d\\n",sqlca.sqlcode);
>>}
>>
>>Again, dbaccess has no problem connecting and querying database "acct",
but
>>none of my just compiled ESQL/C programs can connect.
>>
>>Any ideas?
>>
>
> Check the release notes in $INFORMIXDIR/release.
>
> It may be that your sqlhosts is wrong. Only certain types of
> connections may be supported. e.g. TCP/IP vs TLI.
>>
>>
>>
>>
>
>--
>David Williams