OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P

[Contents][Index][Back][Next]

5.2.2 Compiling and linking in a Windows environment

Organization of this subsection
(1) Procedure
(2) Compile, linking, and go

(1) Procedure

The following figure shows how to create a CUP using COBOL85.

Figure 5-1 Creating a new COBOL CUP

[Figure]

(2) Compile, linking, and go

(a) Starting the COBOL85 development

Double-click on the icon for the COBOL85 compiler support program to activate the COBOL85 integrated development environment.

(b) Creating a source program

Select Editor from the Edit menu of the COBOL85 Compiler Support Program window. The screen editor window appears. Enter a source program in this window.

Instead of starting the editor from the COBOL85 Compiler Support Program window, you can use any editor for Windows to create a source program.

(c) Creating a project

Select New Project from the File menu of the COBOL85 Compiler Support Program window.

Based on the instructions in the window, specify the source program's file name, and linkage options.

For the Import Library/User-Created Library linkage option, specify CLTW32.LIB. If you use the character code converter, also specify CLTCNV32.LIB.

(d) Compiling and linking

Choose Compile Project from the Compile menu of the COBOL85 Compiler Support Program window. The project is automatically compiled and linked.

For linkage, do no specify /NOI as a linkage option.

(e) Executing the CUP

Choose Run from the Run menu of the COBOL85 Compiler Support Program window. After the CUP is created, you can execute it via COBOL85 Compiler Support Program or CBL85R.