Saving and Using the Project Setting Environment for Different Projects

You can set any of the compiler or linker options described in Compiler and Linker Options in the Project menu, Settings dialog box. The Fortran tab of this dialog box presents several categories of options to set.

Visual Fortran provides a facility to save and re-use the Project settings for multiple projects of the same project type. For example, you can save your Project settings environment for a Fortran QuickWin project and use those saved settings as defaults when you create a new Fortran QuickWin project type.

The saved Fortran environment project settings are those associated with the Fortran tab and the displayed tool tab(s) in the Project Settings dialog box. You can:

To save a project settings Fortran environment:

  1. Open the appropriate workspace.
  2. Modify the Project Settings dialog box as needed. If you specify actual file names for output files, consider changing them to use the default file naming conventions.
  3. In the File menu, click Save Fortran Environment or click the green tree on the Fortran toolbar. A window resembling the following dialog box appears:

    Saving a Project Settings Environment

    project settings environment dialog box

  4. The Tool Combo box allows you to view the project settings for either the Fortran or the displayed tools (such as Linker). The Release and Debug configuration values are displayed for the selected tab. Verify that the displayed values are acceptable.
  5. The edit box titled Saved Fortran Console Environment allows you to specify the name of the environment to be saved.
  6. Click the Save Settings button to save the settings as a project settings environment.

To use an existing Fortran environment when creating a new project:

  1. If a Fortran environment exists for the specified new Fortran project type, you will be asked whether you want to apply project settings options from a saved Fortran environment. If you click Yes, a window resembling the following dialog box appears:

    Using an Existing Fortran Project Settings Environment

    applying a previously saved fortran project settings environment

  2. For the selected Fortran project type, a list of saved Fortran environments appears. Select a Fortran environment. Verify that the selected environment is correct by viewing the Project Settings options.
  3. After selecting the appropriate Fortran environment for the Fortran project being created, click the Apply button to use the saved settings for the new project.
  4. Complete other tasks associated with creating a new project, such as adding source files, and so on.

To manage saved Fortran environments:

  1. In the Tools menu, click Managed Saved Fortran Environment or click the saw on the Fortran toolbar. A dialog box resembling the following appears:

    Managing Saved Fortran Project Settings Environments

    managing saved fortran environments

  2. Initially, this dialog box displays the project types for which there are saved Fortran environments. Double-click on the project type name to view the saved Fortran environments for that project type.

    This dialog box allows you to display the Fortran environments associated with each project type. Double-click the name of a project type to display the Fortran environments associated with that project type.

  3. To display the project settings for a Fortran environment:
  4. To determine whether a duplicates exist for a Fortran environment:
  5. To delete a Fortran environment: