Defining Your Project
To define your project, you need to:
- Create the project
- Populate the project with files
- Choose a configuration
- Define build options, including project settings
- Build (compile and link) the project
To create a new project:
- Click the File menu and select New. A dialog box opens that has the following tabs:
- Files
- Projects
- Workspaces
- Other Documents
- The Projects tab displays various project types. Click the type of Fortran project to be
created. If you have other Visual tools installed, make sure you select a
Fortran project type. You can set the Create New Workspace
check box to create a new Workspace.
- Specify the project name and location.
- Click OK to create the new project. Depending on the type of project being created,
one or more dialog boxes may appear allowing you to only create the project without
source files or create a template-like source file.
If a saved Fortran environment exists for the Fortran project type being created, you can
also import a Fortran environment to provide default project settings for the new project
(see Saving and Using the Project Setting Environment for Different
Projects).
This action creates a project workspace and one project. It also leaves the project
workspace open.
To discontinue using this project workspace, click Close Workspace from the File menu.
To open the project workspace later, in the File menu, click either Open Workspace or Recent
Workspaces.
To add files to an existing project:
- To add an existing file to the project:
- If not already open, open the project workspace (use the File menu).
- In the Project menu, select Add to Project and click Select Files... from the submenu.
- The Insert Files into Project dialog box appears. Use this dialog box to select
the Fortran files to be added to the Project. To add more than one file to the project,
hold down the Ctrl key as you select each file name.
- To add a new file to the project:
- If not already open, open the project workspace (use the File menu).
- In the Project menu, select Add to Project and click New... from the submenu.
- The New dialog box appears. Specify the file name and its location.
- Click (select) the type of file (Fortran Fixed Format Source or Fortran Free
Format Source).
- Click OK. The editor appears, letting you type in source code. The file name appears
in the FileView pane.
To define a project from a set of
existing or new source files:
- On the File menu, click New...
- Click the Projects tab.
- Select the type of project.
- Name the project.
- Click OK. Depending on the type of project being created,
one or more dialog boxes may appear allowing you to only create the project without source files
or create template-like source files.
If a saved Fortran environment exists for the project type being created, you can also
import a Fortran environment to provide default project settings for the new Fortran
project (see Saving and Using the Project Setting Environment
for Different Projects).
- Add existing files and/or new files to the project.
To add an existing file to the project:
- In the Project menu, select Add to Project and click Files... from the submenu.
- The Insert Files into Project dialog box appears. Use this dialog box to select the
Fortran files to be added to the Project. To add more than one file to the project, hold
down the Ctrl key as you select each file name.
To add each new file to the project:
- In the Project menu, select Add to Project and click Select New... from the submenu.
- The New dialog box appears. Specify the file name and its location.
- Click the type of file (Fortran Fixed Format Source or Fortran Free Format Source).
- Click OK. The editor appears allowing you to type in source code. The file
name appears in the FileView pane.
- You can now select "Build filename" from the Build Menu to build
your application.
You need to add these kinds of files to your project:
- Program files with .F90, .FOR, or .F extension
- A resource file with an .RC extension
- If your project references routines or data in a Fortran dynamic-link library (DLL), you
need to add the import library (.LIB file created while building the DLL) as a file to your
project (see Building and Using Dynamic-Link Libraries)
For information on:
For more information on defining and building projects, see: