Intel Visual Fortran command line development with Microsoft Visual C++ Express

The command line environment for Intel® Visual Fortran development uses the linker and some libraries from Microsoft Visual Studio*. When the environment setup batch file is run, the version of Visual Studio to use is specified, but the edition of Visual Studio cannot be specified.

If both Microsoft Visual C++ Express* and the Microsoft Visual Studio Shell and Libraries* for Fortran are installed, Visual C++ Express will be used by default. Visual C++ Express does not support 64bit command line development. For 64bit development, the PATH and LIB environmental variables must be changed to point to the Visual Studio Shell and Libraries after the environmental variable set up script is run. Depending on what version is being used, this can be done by running the set of commands below. For convenience, these commands can be placed in a batch file.

If Microsoft Visual Studio Shell and Libraries* was not installed in the default location, replace "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Intel Fortran" with the correct location.

Every time the command line development environment is started up:

  1.  Run "ipsxe-comp-vars.bat intel64 vs20XX" where XX corresponds to the version of Visual Studio being used.
    The command line environment setup script, ipsxe-comp-vars.bat, is located within the install directory for the compiler. This is done automatically by the command prompt links for "Intel Parallel Studio XE" in the Start Menu.
  2. Run the appropriate version of the commands below:

Microsoft Visual Studio 2010 Shell and Libraries* commands:
set path=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Intel Fortran\Microsoft Files\VC\Bin\amd64;%PATH%

set lib=C:\Program Files (x86)\Microsoft Visual Studio 10.0\\Intel Fortran\Microsoft Files\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\\Intel Fortran\Microsoft Files\VC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\\Intel Fortran\Microsoft Files\VC\lib\x64\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\\Intel Fortran\Microsoft Files\VC\PlatformSDK\lib\x64\;%LIB%

Microsoft Visual Studio 2008 Shell and Libraries* commands:
set path=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Intel Fortran\Microsoft Files\VC\Bin\amd64;%PATH%
set lib=C:\Program Files (x86)\Microsoft Visual Studio 9.0\\Intel Fortran\Microsoft Files\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 9.0\\Intel Fortran\Microsoft Files\VC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio 9.0\\Intel Fortran\Microsoft Files\VC\lib\x64\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\\Intel Fortran\Microsoft Files\VC\PlatformSDK\lib\x64\;%LIB%

Microsoft Visual Studio 2005 Shell and Libraries* commands:
set path=C:\Program Files (x86)\Microsoft Visual Studio 8.0\Intel Fortran\Microsoft Files\VC\Bin\amd64;%PATH%

set lib=C:\Program Files (x86)\Microsoft Visual Studio 8.0\\Intel Fortran\Microsoft Files\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 8.0\\Intel Fortran\Microsoft Files\VC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio 8.0\\Intel Fortran\Microsoft Files\VC\lib\x64\;C:\Program Files (x86)\Microsoft Visual Studio 8.0\\Intel Fortran\Microsoft Files\VC\PlatformSDK\lib\x64\;%LIB%

For more complete information about compiler optimizations, see our Optimization Notice.

5 comments

Top
Sergey Kostrov's picture

>>...Do you have any experience with Bloodshed IDE?
.
No and this is 1st time when I hear about that IDE.

iliyapolak's picture

@Sergey

Sorry for off topic question.Do you have any experience with Bloodshed IDE?

Sergey Kostrov's picture

I have 5 different versions of Visual Studio ( including Professional and Express ) on the same computer and I didn't have any similar issues or problems. Anyway, it is a good article. Thanks.

Annalee (Intel)'s picture

If you have a full version of Visual Studio installed in the default location for Microsoft* Visual Studio you will not run into this issue. This article only applies to customers who are using Microsoft Visual C++ Express without a full version of Visual Studio.

Sergey Kostrov's picture

I think the article is not up-to-date because Intel Parallel Studio XE 2013 does a really good job by integrating Intel compilers ( C++ & Fortran ) with different editions of Visual Studio.

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.