Intel® Fortran Compiler 17.0 Developer Guide and Reference

Creating the Executable Program

When you are ready to create an executable image of your application, use the options on the Build menu. You can:

When you have completed your project definition, you can build the executable program.

When you select Build <projectname> from the Build menu (or Build toolbar), the integrated development environment (IDE) automatically updates dependencies, compiles and links all files in your project. When you build a project, the IDE processes only the files in the project that have changed since the last build and those files dependent on the changed files. The following example illustrates this.

Note

To define the build order of projects, right-click on the solution and choose Properties > Project Dependencies.

Example:

Assume you have multiple projects (A, B, and C) in a solution with the following defined dependencies:

If you build A, the build process verifies that B is up-to-date. During verification of B, C is also verified that it is likewise up-to-date. When either, or both, are determined to be out of date, the appropriate build operations will occur to update them . When C and B produce .lib or .dll output, the output of C is linked into B and the output of B is linked into A.

The Rebuild <project name> option forces a new compilation of all source files listed for the project.

You either can choose to build a single project, the current project, or multiple project configurations (using the Batch Build... option) in one operation. You can also choose to build the entire solution.

You can execute your program from the IDE using Debug > Start Without Debugging (Ctrl and F5) or Debug > Start(F5). You can also execute your program from the command line prompt.

Compiling Files In a Project

You can select and compile individual files in any project in your solution. To do this, select the file in the Solution Explorer view. Then, do one of the following:

You can also use Compile from the Build menu (or Build toolbar) options when the source window is active and has input focus.

Encountering Errors During Compilation

When the compiler encounters an error in a file, compilation stops and the error is reported. You can change this default behavior and allow compilation to continue despite an error in the current file. When you do this, an error in the current file will cause the compiler to begin compiling the next file.

To enable Continue on errors behavior:

  1. In Tools > Options > Intel Compilers and Tools > Visual Fortran, select the General category.

  2. Check Continue on errors and click OK.

To set the maximum number of errors to encounter before compilation stops, choose Configuration Properties > Fortran > Diagnostics > Error Limit.