Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generate a 4go file from c4gl

119 views
Skip to first unread message

eferreyra

unread,
Mar 27, 2013, 6:38:02 PM3/27/13
to
Hello, a question: How can i generate a .4go file to be linked with the r4gl for fglgo with c4gl ?

Thanks

Jonathan Leffler

unread,
Mar 27, 2013, 7:46:39 PM3/27/13
to eferreyra, inform...@iiug.org

On Wed, Mar 27, 2013 at 3:38 PM, eferreyra <efer...@gmail.com> wrote:
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 <jonathan...@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

unread,
Mar 27, 2013, 9:17:37 PM3/27/13
to eferreyra, inform...@iiug.org
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.


On Wed, Mar 27, 2013 at 6:38 PM, eferreyra <efer...@gmail.com> wrote:
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
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list

eferreyra

unread,
Mar 28, 2013, 7:12:22 AM3/28/13
to
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

unread,
Mar 28, 2013, 10:41:13 AM3/28/13
to eferreyra, inform...@iiug.org


On Thu, Mar 28, 2013 at 4:12 AM, eferreyra <efer...@gmail.com> wrote:
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).
0 new messages