Errors are encountered during runtime after using the gcc compiler instead of the XL C/C++ compiler on AIX.
Running a 4GL program compiled with gcc throws the following error:
Could not load program ./test.4ge:
The program does not have an entry point or
the o_snentry field in the auxiliary header is invalid.
Examine file headers with the 'dump -ohv' command.
The cause of the problem is because the c4gl script is written to utilize the AIX XL C/C++ compiler. This is the only compiler that the MACHINENOTES indicate IBM Informix 4GL is certified with. There are certain compile flags in the c4gl script that do not pertain to the gcc compiler.
Resolving the problem
To resolve the problem, you can backup the c4gl script and then modify it to utilize the gcc compile flags in place of the XL C/C++ compile flags: