To display the Linker Options page and set link options:
Select a COBOL project in the "Dependency" or "Structure" view.
Select "File" > "Properties" from the menu bar or "Property..." from the context menu. The property dialog box appears.
Select "Build" in the left pane. The "Build" page is displayed.
Select the "Linker Options" tab. The "Linker Options" page is displayed.
Item | Description | |
---|---|---|
Linker options | Displays a list of the set libraries and object files. | |
Add | Adds libraries and object files to be linked. Click the "Add" button to display the Add Linker Option dialog box so that libraries and object files can be selected. Click the "Browse" button to display the Folder type selection dialog box so that files can be selected. One or more libraries and object files can be added. | |
Change | Changes the selected library or object file. | |
Remove | Deletes the selected library or object file. | |
Remove All | Deletes all the libraries and object files displayed in Linker options. | |
Up | Changes the linking order of the selected library file. | |
Down | Changes the linking order of the selected library file. | |
Use C function | Used to select whether the TARGET type is a dynamic link library and whether the TARGET uses the C functions. This item defaults to unchecked. | |
Specifies the filename of the C run-time library to be linked during linkage. If the C run-time library name is omitted, "LIBCMT.lib" is linked. | ||
Specifies whether only object files created in COBOL are used to create the dynamic link library, or whether object files created in other languages are also used. | ||
For COBOL program only | Creates a dynamic link library using only object files created in COBOL. | |
For linking with non-COBOL Program | Creates a dynamic link library using object files created in other languages as well as COBOL. | |
Output debugging information | Used to select whether to output debug information to the program data base file(PDB). This item defaults to check. | |
Other options | Used to enter additional link options. To enter multiple options, insert space characters as delimiters. |
Note
When specifying the project from Selection from the project dialog in selecting Link options, the path separator backslash is displayed as a forward slash. The forward slash is treated as a backslash.
The following table lists link options that can specified for Other options. For details on the link options, see the NetCOBOL User's Guide.
Specification format | Description |
---|---|
/EXPORT:external-reference-name | Creates external reference information. |
/OUT:filename | Specifies the name of the main output file. |
/STACK:stack-size | Specifies a change in the stack size. The default is 1 MB. Specify a stack size in units of bytes. |
/MAP:filename | Specified this when creating a map file. |