Re: Need esqlc HP-UX thread library consultant/guru
- From: Jonathan Leffler <jleffler@xxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 03:56:24 GMT
koreilly@xxxxxxxxxxx wrote:
Have a esql program similar to demo1.ec that must run with the thread libraries on HP-UX 11.11.
When a 'esql -thread program.ec -o program' is run, the program works.
However when the following 2 steps are run with a compile and link it does not work (run time errors are 'State was 01I01 and code was 0'):
1. 'esql -thread program.ec'.
2. cc program.c -o program \
You need to compile the ESQL/C code to object - and then do the linking.
I'm 99% sure there are options to the C compiler that ensure thread safety that you're not using in this compile and link line.
Or, use 'esql -c -thread program.ec' and then replace 'program.c' with program.o.
And, best of all, use esql to do the linking -- since it works.
-I$INFORMIXDIR/incl/esql \ -Wl,-v,-s,+s,-a,shared_archive,-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql \ -lthsql -lthasf -lthgen -lthos -lifgls \ -lnsl_s -lm -lsec -lnsl_s \ /home/informix/lib/esql/checkapi.o -lifglx \ -lpthread
A 'chatr program' on the version that works and version does not work is similar.
Why do you think it is better to link without the esql script? I'd go to great lengths to use it.
-- Jonathan Leffler #include <disclaimer.h> Email: jleffler@xxxxxxxxxxxxx, jleffler@xxxxxxxxxx Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/ .
- References:
- Need esqlc HP-UX thread library consultant/guru
- From: koreilly
- Need esqlc HP-UX thread library consultant/guru
- Prev by Date: Re: 4GL compares NULL differently
- Next by Date: Re: Google Base: All your base are, in fact, belong to us
- Previous by thread: Need esqlc HP-UX thread library consultant/guru
- Next by thread: problem defining VARIABLE
- Index(es):
Relevant Pages
|