Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

6.1.3 Setting compile options

This section explains how to set the compile options that are required for building a project.

See

For details of the compile options, refer to the "Appendix A Compile Options".

Compile options are set for each project. The set options are sent to the COBOL compiler as parameters.

To display the Compiler Options page and set compile options:

  1. Select a COBOL project in the "Dependency" or "Structure" view.

  2. Select "File" > "Property..." from the menu bar or "Property..." from the context menu. The Property dialog box appears.

  3. Select "Build" in the left pane. The "Build" page is displayed.

  4. Select the "Compiler Options" tab. The "Compiler Options" page is displayed.

    Table 6.1 Compiler Options page

    Item

    Description

    Compiler options

    Displays the compile options to be sent to the COBOL compiler.

    Add

    Adds the compile options. To add compile options, select the compile options in "Compiler options" in the Add Compiler Options dialog box, and then click the "Add" button. For details on compile options, see "A.1 Compile option details."

    Change

    Changes the compile options selected in Compiler options.

    Remove

    Deletes the compile options selected in Compiler options.

    The CHECK(ALL) compile option is automatically added when the build mode is Debug.

    Specifies whether the compiler option CHECK(ALL) is added automatically or not when the build mode is debug.

    If checked, compiler option CHECK(ALL) is added. To specify CHECK option except for ALL, deselect the CHECK option and then select the CHECK option again, and select the other Check items in the CHECK Compiler Option dialog.

    Other compiler options

    Specifies the compile options that cannot be added from the Add Compiler options dialog box.

Note

  • Compiler option specifies file extension

    The following compile options are not displayed in the Add Compiler Options dialog box:

    • FORMEXT

    • LIBEXT

    These compiler options can be specified in the environment variables. For details, see the "NetCOBOL User's Guide."

  • Compiler option specifies text file encoding of COBOL source files

    The compiler option SCS that specifies the text file encoding of COBOL source files is not displayed in the Add Compiler Options dialog. The text file encoding is determined from the file property Text file encoding. When the Text file encoding of the file property is "UTF-8", SCS(UTF8) is set for compiler option SCS. If the Text file encoding is other than "UTF-8", SCS(ASCII) is set.

  • The following compiler options cannot be specified for NetCOBOL for Windows(x64) edition

    • AIMLIB compiler option

    • FILELIB compiler option

    • GEN compiler option

    • CHECK(LINKAGE) compiler option