Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Van Biesen Peter asked whether gcc-compiled programs could link the Informix ESQL/C libraries on HP-UX PA-RISC with IDS 7.31. Avi Abrami said to set the INFORMIXC environment variable to gcc. Mark Oberfield confirmed it had worked without problems, and KONE said linking the libraries and compiling ESQL/C source with gcc were both easy, pointing to the release notes about a -fwriteable-strings issue. Solved.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Van Biesen Peter — — source: Informix-list mailing list archive (1991-1998)
Hi,
I'm using informix 7.31 on a HPUX PA-risc system. I was wondering if a
program compiled with gcc could link in the informix ESQL/C libraries.
I believe these libraries are compiled with the standard cc, is it not ? If I
remember correctly, this should pose problems with calling conventions and
the sorts, no ?
Anyone that ever tried this ?
Thanx,
Peter.
↪ replying to Van Biesen Peter
Avi Abrami — — source: Informix-list mailing list archive (1991-1998)
Van Biesen Peter wrote:
> Hi,
>
> I'm using informix 7.31 on a HPUX PA-risc system. I was wondering if a
> program compiled with gcc could link in the informix ESQL/C libraries.
>
> I believe these libraries are compiled with the standard cc, is it not ? If I
> remember correctly, this should pose problems with calling conventions and
> the sorts, no ?
>
> Anyone that ever tried this ?
>
> Thanx,
>
> Peter.
Peter,
In order for ESQL/C to use the gcc compiler,
set the environment variable INFORMIXC to gcc.
See the "Informix Guide to SQL: Reference", chapter three
Available online from http://www.informix.com
HTH,
Avi.
--
/\\ \\ /| Avi Abrami, Analyst/Programmer, Terayon Comms
/__\\ \\ / | eMail: avia@terayon.com
/ \\ \\/ | http://www.terayon.com
↪ replying to Van Biesen Peter
Mark Oberfield — — source: Informix-list mailing list archive (1991-1998)
>>>>> " " == Van Biesen Peter <pvbiesen@xs4all.be> writes:
> Hi, I'm using informix 7.31 on a HPUX PA-risc system. I was
> wondering if a program compiled with gcc could link in the
> informix ESQL/C libraries.
> I believe these libraries are compiled with the standard cc, is
> it not ? If I remember correctly, this should pose problems
> with calling conventions and the sorts, no ?
We've done it without problems. As a previous poster pointed
out, if you want esql preprocessor to create a object file directly
be sure to set the INFORMIXC environmental variable.
Mark
--
"Love is like pi - natural, irrational, and very important."
-- Lisa Hoffman
↪ replying to Van Biesen Peter
KONE — — source: Informix-list mailing list archive (1991-1998)
Van Biesen Peter wrote:
>
> Hi,
>
> I'm using informix 7.31 on a HPUX PA-risc system. I was wondering if a
> program compiled with gcc could link in the informix ESQL/C libraries.
>
> I believe these libraries are compiled with the standard cc, is it not ? If I
> remember correctly, this should pose problems with calling conventions and
> the sorts, no ?
>
> Anyone that ever tried this ?
>
> Thanx,
>
> Peter.
We have linked in the libraries provided by Informix when we wanted some
of the date routines, if that is what you're after. Just link in those
libraries as you would others you use only occasionally. If you are
asking about compiling esqlc source code with gcc, that too is easily
done, and other posters have covered it. Check the release notes, for
there used to be an issue with -fwriteable-strings or something like
that in the esql shell script that handles compilation.
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.