Discussion:
Generate a 4go file from c4gl
(too old to reply)
eferreyra
2013-03-27 22:38:02 UTC
Permalink
Hello, a question: How can i generate a .4go file to be linked with the r4gl for fglgo with c4gl ?

Thanks
Jonathan Leffler
2013-03-27 23:46:39 UTC
Permalink
How can I generate a .4go file to be linked with the r4gl for fglgo with
c4gl ?
The c4gl script comes with the I4GL (c-code) compiler and generates code
for the C compiler (and ESQL/C compiler). It cannot be used to generate
for the I4GL-RDS (p-code) compiler; you need the fglpc command (and a
development copy of I4GL-RDS) for that. If you have r4gl, though, you
should have the fglpc compiler too.

fglpc file.4gl

This will generate file.4go for use with r4gl.
--
Jonathan Leffler <***@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0118 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."
Art Kagel
2013-03-28 01:17:37 UTC
Permalink
If you have a multi-file 4Gl app and want to link the modules together just
fglpc each source file then cat the resulting object files together into a
single .4go or .4gi executable and run that using fglgo.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly,
implicitly, or by inference. Neither do those opinions reflect those of
other individuals affiliated with any entity with which I am affiliated nor
those of the entities themselves.
Post by eferreyra
Hello, a question: How can i generate a .4go file to be linked with the
r4gl for fglgo with c4gl ?
Thanks
_______________________________________________
Informix-list mailing list
http://www.iiug.org/mailman/listinfo/informix-list
eferreyra
2013-03-28 11:12:22 UTC
Permalink
Ok, i know about fglpc, let me explain, all our main programs are compiled as .4go and linked as .4gi.

Now i have followed instructions (very hard ones) to create a .4cf file for a web service suscribe, with this .4cf file and the w4glc tool i generate the .c and .o file for the ws client, to use this client from .4gl i see that i need to use the c4gl compiler, i did, but how can i make the web service client to our .4gi (p-code) main program then ?

Thanks
Jonathan Leffler
2013-03-28 14:41:13 UTC
Permalink
Post by eferreyra
Ok, i know about fglpc, let me explain, all our main programs are compiled
as .4go and linked as .4gi.
Now i have followed instructions (very hard ones) to create a .4cf file
for a web service suscribe, with this .4cf file and the w4glc tool i
generate the .c and .o file for the ws client, to use this client from .4gl
i see that i need to use the c4gl compiler, i did, but how can i make the
web service client to our .4gi (p-code) main program then ?
Ask half a question; get half an answer? Also known as the XY Problem (
http://mywiki.wooledge.org/XyProblem).

I4GL-SOA does not support p-code at the moment, AFAICR. That is, it
supports c-code services, but not p-code services. There is nothing
completely impossible about supporting p-code, but the parts have not all
been hooked together (and doing so is not entirely trivial).
--
Jonathan Leffler <***@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2013.0118 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."
Loading...