Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Linking through the compiler

When you start the COBOL for Windows compiler, it compiles the object files from your source code and then starts the linker to link the object files into an .EXE or .DLL file.

The compiler passes the object files it creates to the linker along with any object files that you specify on the compiler command line. The compiler does not pass any default parameters to the linker. Use the -b option of the cob2 command to pass options to the linker.

If you do not want the compiler to start the linker, specify the -c option of the cob2 command. You can then start the linker in a separate step.

Examples: using cob2 for linking

related references
Linker options


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)