Lahey Fortran

Solutions and Projects

The project is a basic building block that Visual Studio uses to create applications. A project will normally take a set of one or more source files and produce a compiled executable, but a project can also produce things like DLLs or static libraries, or do other sorts of processing. All the source files within a project are usually written in one programming language, and are compiled with one compiler.

The solution is basically a container for projects. A solution can contain projects that use different programming languages and compilers. For example, a solution might contain a project that creates a C DLL, and another project that creates a Fortran executable that uses the DLL.

For the programmer, most of the control over the properties of an application happens at the project level, there are only a few properties that can be changed at the solution level. Solution level properties that are of interest to the user are the configuration property and the ability to set project dependencies. The configuration property determines whether the project is being built for debug or for release, or the user may create their own configuration. The user can also tell Visual Studio that a project depends on another project, so that Visual Studio can build the projects in the correct order.

This section describes the steps necessary for performing common tasks associated with creating and managing Lahey Fortran projects and solutions.

Fortran Project Types
Creating a New Fortran Project
Upgrading an Existing Visual Studio Lahey Fortran Project
Adding Existing Source Files
Removing Items from a Project
Fortran Include Files
Linking a Project With Libraries or Object Files
Compiling and Linking a Project With Modules
Setting Project Dependencies
Setting Build Options
Building Projects and Viewing Errors