Defining Your Project

To define your project, you need to:

  1. Create the project
  2. Populate the project with files
  3. Choose a configuration
  4. Define build options, including project settings
  5. Build (compile and link) the project

To create a new project:

  1. Click the File menu and select New. A dialog box opens that has the following tabs:
  2. 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.

  3. Specify the project name and location.

  4. 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 define a project from a set of existing or new source files:

  1. On the File menu, click New...
  2. Click the Projects tab.
  3. Select the type of project.
  4. Name the project.
  5. 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).

  6. Add existing files and/or new files to the project.

    To add an existing file to the project:

    1. In the Project menu, select Add to Project and click Files... from the submenu.
    2. 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:

    1. In the Project menu, select Add to Project and click Select New... from the submenu.
    2. The New dialog box appears. Specify the file name and its location.
    3. Click the type of file (Fortran Fixed Format Source or Fortran Free Format Source).
    4. Click OK. The editor appears allowing you to type in source code. The file name appears in the FileView pane.
  7. 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:

For information on:

For more information on defining and building projects, see: