Microsoft KB Archive/31195

Mknewcob Accepts Both .C Source and .O Object Files

PSS ID Number: Q31195 Article last modified on 04-21-1993

2.10 2.20 XENIX

Summary: The mknewcob SHELL file is used for linking non-COBOL subroutines to runcob. (Runcob is the XENIX COBOL run-time executor.) The mknewcob SHELL file will accept .c source files or .o object files.

More Information: C subroutines must be compiled in medium model to be compatible with the modules in the MS COBOL run-time system included in the MS COBOL libraries. If .o files are used in the mknewcob command line, they should be made by compiling with the -Mme switch in the cc command line. Alternatively, you may give mknewcob the names of your C subroutine source files (with .c extensions); mknewcob will compile them with the proper compiler options. For more information about mknewcob, refer to the “Microsoft COBOL Compiler for XENIX: User’s Guide,” Section 8.6.2, “Creating and Linking Non-COBOL Subroutines.”

Additional reference words: 2.10 2.20 Copyright Microsoft Corporation 1993.