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.
Mike Segel — — source: Informix-list mailing list archive (1991-1998)
mpeter wrote:
> =
> Forwarded message:
> =
> > >
> > > I am trying to call a function in a 4gl module (informix 4gl, versi=
on
> > > 4.00) from a esql/c program (informix esql/c version 4.00). I don=B4=
t know
> > > how to do it.
> >
> =
> Hi ,
> =
> Check c4gl compiler options ...
> =
> -e will give u *.c, preproccessed *.4gl ....
> =
> U can compile *.c using c compiler and link it to ur esql pgm =
Calling 4GL from C ???
You can compile the 4GL code to C, but it doesn't make sense.
What you would have to do is see how 4GL preprocesses a function call
to C then have your C program mimic it. Then you would still have
to preprocess 4GL to esql/C then compile with your C code.
All of the Informix documentation tells how to call C from 4GL not =
the reverse.
But hey I could be wrong.
-Mikey
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.