Compaq has donated a license for Compaq Visual Fortran 6.6 to the physics department. For use in the physics department, the compiler has been installed on the PHYSICS server. It can be used in the Physics Library as well as Olin 221 and 224 labs. The Department of Information Technology has also installed it on the computers in the main Olin lab
The Microsoft® Visual Studio development environment (also called Developer Studio) organizes development into projects. A project consists of the source files required for your application, along with the specifications for building the project. The build process involves defining your project, setting options for it, and building the program or library.
Each project can specify one or more configurations to build from its source files. A configuration specifies such things as the type of application to build, the platform on which it is to run, and the tool settings to use when building. Having multiple configurations lets you extend the scope of a project but still maintain a consistent source code base from which to work.
When you create a new project, the Microsoft visual development environment automatically creates Debug and Release configurations for you. The default configuration is the Debug configuration. To specify the current configuration, select Set Active Configuration from the Build menu.
Projects are contained in a workspace. When you create a new project, you indicate whether the project is created in a new workspace or an existing workspace. To open an existing project, you open its workspace. A workspace can contain multiple projects.
Once you open a workspace, the development environment displays a FileView pane, which displays the files contained in the project, and lets you examine visually the relationships among the files in your project. Modules, include files, or special libraries your program uses are automatically listed as dependencies. The output window displays information produced by the compiler, linker, Find in Files utility, and the profiler.
You can specify build options in the Project menu Settings dialog box, for one of the following:
For example, you can specify certain kinds of compiler optimizations for your project in general, but turn them off for certain configurations or certain files. You can also specify additional libraries to be used at link time (e.g. pgplot.lib) to add previously compiled subroutines to your program,
Once you have specified the files in your project, the configurations that your project is to build, and the tool settings for those configurations, you can build the project with the commands on the Build menu.
When you create the project, you must choose a project type. You need to create a project for each binary executable file to be created. For example, the main Fortran program and a Fortran dynamic-link library (DLL) would each reside in the same workspace as separate projects.
The project type specifies what to generate and determines some of the options that the visual development environment sets by default for the project. It determines, for instance, the options that the compiler uses to compile the source files, the static libraries that the linker uses to build the project, the default locations for output files, defined constants, and so on.
You can build six kinds of projects with Visual Fortran. You specify the project type when you create a new project. They are summarized in the following table:
|
Project type |
Key features |
|
Fortran Console Application (.EXE) |
Single window main projects without graphics (resembles character-cell applications). Requires no special programming expertise. |
|
Fortran Standard Graphics Application (.EXE) |
Single window main projects with graphics. The programming complexity is simple to moderate, depending on the graphics and user interaction used. Samples of Standard Graphics Applications (QuickWin single window) resemble those for QuickWin Applications (see below). |
|
Fortran QuickWin Application (.EXE) |
Multiple window main projects with graphics. The programming complexity is simple to moderate, depending on the graphics and user interaction used. |
|
Fortran Windows Application (.EXE) |
Multiple window main projects with full graphical interface and Win32 API functions. Requires advanced programming expertise and knowledge of the Win32 routines API. |
|
Fortran Static library (.LIB) |
Library routines to link into .EXE files. |
|
Fortran Dynamic-Link Library (.DLL) |
Library routines to associate during execution. |
The first four projects listed in the preceding table are main project types, requiring main programs. The last two are library projects, without main programs.

To prepare your program for debugging when using the Microsoft visual development environment:
The following general suggestions apply to different types of Fortran data:
Electronic Copy: http://physics.gac.edu/~huber/classes/phy210/Visfort6.htm
Created: 1-JAN-00 by Steve Mellema, Physics Department, Gustavus Adolphus College.
Revised: 2-JAN-02 by Tom Huber, Physics Department, Gustavus Adolphus College.