Compiler build mode

To build a 64-bit COBOL application, make sure that the build mode for the COBOL compiler is correctly set. For example, in ESQL/COBOL, the COBMODE must be set to 32 for a 32-bit build, and to 64 for a 64-bit build. Failure to do this can result to a build error or produce an unexpected binary.

To build a 64-bit C application, use the -DSYB_LP64 compiler option to ensure that the C compiler generates the correct code.

For more information about building and linking your 64-bit application, see the sybopts.sh script available in the $SYBASE/$SYBASE_OCS/sample/esqlc and the $SYBASE/$SYBASE_OCS/sample/esqlcob directories. See also the Open Client and Open Server Programmer's Supplement for your platform.