Determining the main routine
In C and C++ the main routine is the function called main(). In a C to C++ ILC application only one main() function is allowed. Multiple main() functions will result in errors. Recursive calls to the main() function are not supported in C++.
An entry point is defined for each supported HLL. Table 1 identifies the desired entry point. The table assumes that your code has been compiled using the Language Environment-conforming compilers.
See z/OS XL C/C++ Runtime Library Reference for the description of the requirements for fetching C++.
HLL | Main entry point | Fetched entry point |
---|---|---|
C | CEESTART | CEESTART or routine name, if #pragma linkage(,fetchable) is not used. |
C++ | CEESTART | CEESTART or routine name, if #pragma linkage(,fetchable) is not used. |