compiling Informix 4GL and Genero from the same source code
Posted in 2011
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
I have been trying to convert my existing 4gl programs to Genero. Generally, it has been fairly easy. What I would like to do is use the same source code for both programs. This seems to require that the source code compile under both programs. I notice that there is a preconpiler option from Genero with commands like &ifdef. Is there something similar for Informix so that I can utilize the differences in 4gl and Genero? Thanks. 11.50.FC5 -- Randall Young randall.young@arkansas.gov
Randall Young (ADE) wrote: > I have been trying to convert my existing 4gl programs to Genero. > Generally, it has been fairly easy. What I would like to do is use the > same source code for both programs. This seems to require that the > source code compile under both programs. I notice that there is a > preconpiler option from Genero with commands like &ifdef. Is there > something similar for Informix so that I can utilize the differences in > 4gl and Genero? Thanks. Have you considered the C pre-processor, cpp? -- Ian The Hotmail address is my spam-bin. Real mail address is iang at austonley org uk
On 04/04/11 15:30, Ian Goddard wrote: > Randall Young (ADE) wrote: >> I have been trying to convert my existing 4gl programs to Genero. >> Generally, it has been fairly easy. What I would like to do is use the >> same source code for both programs. This seems to require that the >> source code compile under both programs. I notice that there is a >> preconpiler option from Genero with commands like &ifdef. Is there >> something similar for Informix so that I can utilize the differences in >> 4gl and Genero? Thanks. > > Have you considered the C pre-processor, cpp? > fglpp (http://www.4glworks.com/misc.htm#4gl) fits the bill perfectly -- Ciao, Marco ______________________________________________________________________________ Marco Greco /UK /IBM Standard disclaimers apply! Structured Query Scripting Language http://www.4glworks.com/sqsl.htm 4glworks http://www.4glworks.com Informix on Linux http://www.4glworks.com/ifmxlinux.htm