Generate a 4go file from c4gl
Posted in 2013
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Hello, a question: How can i generate a .4go file to be linked with the r4gl for fglgo with c4gl ? Thanks
On Wed, Mar 27, 2013 at 3:38 PM, eferreyra <eferreyra@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.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."
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 <eferreyra@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 > Informix-list@iiug.org > http://www.iiug.org/mailman/listinfo/informix-list >
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
On Thu, Mar 28, 2013 at 4:12 AM, eferreyra <eferreyra@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). -- Jonathan Leffler <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."