| Last Modified On : | January 9, 2009 5:04 PM PST |
Rate |
|
If your application mixes Fortran with C or C++ and the main program is not in Fortran, you must configure Microsoft Visual Studio to search Fortran libraries. This article describes the process. Visual Studio 2008 is used in the illustrations. The process is similar for Visual Studio 2005 and Visual Studio.NET 2003, with the exception that Visual Studio .NET 2003 supports development for the "Win32" platform (IA-32 architecture) only.
This article applies to Intel Visual Fortran 10.x and 11.x.
This configuration needs to be done one time only per install of Microsoft Visual Studio.
Open Microsoft Visual Studio. Select Tools > Options. In the left pane, expand Projects and Solutions and then click on VC++ Directories. (Visual Studio .NET 2003 uses "Projects" instead of "Projects and Solutions")
Click on the New Line button (to the right of the "check mark" button) and enter the following new line if you are using Intel Visual Fortran 11.x:
$(IFORT_COMPILER11)lib\ia32
or the following new line if you are using Intel Visual Fortran 10.x:
$(IFORT_COMPILER10)\ia32\lib
Click OK.
If you are using Visual Studio 2005 or 2008 and will be developing for the Intel 64 or IA-64 architectures, repeat the above steps, using the Platform dropdown to select "x64" (Intel 64) or "Itanium" (IA-64). When entering the path, use "intel64" or "ia64" instead of "ia32".
Additional Notes
If you are using Visual Studio 2005, you must install Visual Studio 2005 Service Pack 1, otherwise your Fortran project will not be found when linking the C/C++ project.
If you need help using Intel Visual Fortran, please visit our User Forum an post a question there. If you have a comment on this article, you can add one below.
