/[no]link

Syntax:

/link:options or /nolink

The /link option (without specifying options) precedes options to be passed to the linker as is (see Linker Options and Related Information). You can also specify the options to be passed to the linker as is using the form: /link:options.

To specify additional libraries to be linked on the command line, specify the library name on the DF command line either before or after the /link option, but the Linker option /nodefaultlib must follow the /link option:

 DF /compiler-options filename.f90  mylib.lib /link /nodefaultlib

In the visual development environment, you can specify linker options using the Linker tab in the Project menu Settings dialog box. For example, to specify additional libraries to be linked in the visual development environment:

  1. In the Project menu, click Settings to display the Project settings dialog box
  2. Click the Linker tab
  3. Select the General category
  4. Type the additional library name to be linked with under Object/Library modules, such as mylib.lib
  5. Click OK when done

The /nolink option suppresses linking and forces an object file to be produced even if only one program is compiled. Any options specified after the /nolink option are ignored.

If you encounter linker errors, see Linker Diagnostic Messages and Error Conditions.