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:
- Open the appropriate workspace.
- 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.
- 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](bld-env.gif)
- 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.
- The edit box titled Saved Fortran Console Environment allows you to specify the name
of the environment to be saved.
- 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:
- 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](bld-env-use.gif)
- 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.
- 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.
- Complete other tasks associated with creating a new project, such as
adding source files, and so on.
To manage saved Fortran
environments:
- 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](fenv-manage.gif)
- 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.
- To display the project settings for a Fortran environment:
- Click the name of a Fortran environment.
- View the project settings for the Fortran tab.
- Click the other tool tab (such as Linker) and view that tool's project settings.
- If needed, click (select) a different Fortran environment.
- To determine whether a duplicates exist for a Fortran environment:
- Click (select) the name of an environment or a project type.
- Click the Display Environments with Duplicate Settings button.
- If the Fortran environments have different project settings, No Duplicates
Found is displayed.
- If the Fortran environments have identical project settings, the
duplicate environments are displayed.
- To delete a Fortran environment:
- Click (select) the name of an environment or the project type.
- Click the Delete button.
- Click OK to the delete confirmation box.