Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Integration with Visual Studio

abhimodak
New Contributor I
801 Views
Hi

I want to use command line building with two different versions of the visual studio (viz. 2003 and 2005). However, when installing the compiler integrations we get to choose only one of the visual studio versions.

I can see the corresponding line in the appropriate IFORTVARS.bat file. For example, if I choose VS2005 then

Call "C:Program Files (x86)Microsoft Visual Studio 8VCBinVcvars32.bat".

Then to get command line building with VS2003 I thought I could just copy IFORTVARS.bat and change the above line to

Call "C:Program Files (x86)Microsoft Visual Studio .NET 2003Vc7BinVcvars32.bat"

I then created another shortcut and edited the new target to reflect new batch file.

However, I found that I can only compiler but not build an executable. The error message says that "mspdb80.dll" not found. Am I missing a step here?

I found that instead of deleting the original line I simply append the new line pointing to the other version of VS. Then, although the exe creation is successful, I get a message about the libcmt file.

Sincerely
Abhi

0 Kudos
2 Replies
Steven_L_Intel1
Employee
801 Views
You also need to edit ifort.cfg (same folder as ifortvars.bat) and remove the line starting with -Qlocation. The -Qvc8 in that file can be overridden with -Qvc7.1 in your command line when building with VS2003.
0 Kudos
abhimodak
New Contributor I
801 Views
Thanks Steve.

Abhi
0 Kudos
Reply