Compile and Link Options for a Configuration or Certain Files

You can set compiler or linker options by using the Project Settings dialog box.

To display the Project Settings dialog box:

  1. Open your project workspace.
  2. In the Project menu, click Settings.

The Fortran tab of this dialog box presents options grouped under different categories. Select the category from the Category drop-down list:

project settings, fortran tab, showing categories

You can choose compiler and linker options through the various categories in the Fortran and Link tabs. For details about the compiler options, see Categories of Compiler Options.

If a compiler option is not available in the Project Settings dialog box you can enter the option in the lower part of the window under Project Options: just as you would using the command line.

The FileView pane shows the files associated with the project configuration and lets you select certain files. The options that you set at the file level in the configuration override options set at the configuration level. Linking options only be applied at the configuration level (not the file level).

The linker builds an executable program (.EXE), static library (.LIB), or dynamic-link library (.DLL) file from Common Object File Format (COFF) object files and other libraries identified in the linker options. You direct the linker by setting linker options either in the visual development environment, in a build instructions file, or on the console command line. For example, you can use a linker option to specify what kind of debug information to include in the program or library.

For more information on compiler and linker options, see Compiler and Linker Options.