Previous Topic Next topic Print topic


Pass Option to the C++ Compiler (+CC cc_option)

Passes cc_option to the C++ compiler. If you specify the +CC cob flag, you must ensure that the only options you enter are options used by the C++ compiler itself. This is because the system assumes that if you are using the cob command rather than the C++ compiler to compile a C++ program, you want to link the C++ program to COBOL programs before it is run. To do this, cob needs the .o file output by the C++ compiler once it has compiled the C++ program. cob can then take the resulting .o file and link it with other object modules to create a callable shared object, shared library or system executable file. Therefore, you should not try to use the -CC flag to pass options that the Compiler normally would try to pass to the system linker.
Previous Topic Next topic Print topic