Search
Support & Downloads
All of Support
This Category
This Product
Software Products
Intel® Fortran Compiler for Windows*
Building Mixed Language Applications under Visual Studio*

In Visual Studio* 6.0 it was possible to have a project that contained both C++ and Fortran source files. In Visual Studio* 2002, 2003 and 2005, it is not possible to have mixed languages within the same project. This is a limitation of the development environment.

To work around this issue, follow these steps:

  1. Create two projects, each containing the source files of a single language. The project that contains the main program should be made an executable project and the other a static library project.
  2. Right-click the executable project and select Dependencies to set the executable project as dependent on the static library project.
  3. Right-click on the executable project and select Set as Startup Project so that you can build it and debug.

Note: Visual Studio.NET* 2002 is not supported by the Intel® 10.0 compilers.

Operating System:
Windows* XP Professional x64 Edition, Windows Server* 2003 Standard x64 Edition, Windows Server* 2003 Enterprise x64 Edition, Windows Vista* 64, Windows Vista* Starter, 32-bit version, Windows Vista* Home Basic, 32-bit version, Windows Vista* Home Premium, 32-bit version, Windows Vista* Business, 32-bit version, Windows Vista* Enterprise, 32-bit version, Windows Vista* Ultimate, 32-bit version, Windows Vista* Home Basic, 64-bit version, Windows Vista* Home Premium, 64-bit version, Windows Vista* Business, 64-bit version, Windows Vista* Enterprise, 64-bit version, Windows Vista* Ultimate, 64-bit version, Windows Vista*, Windows Server* 2003 for Itanium-based Systems, Windows* XP 64-Bit Edition, Windows* XP Professional, Windows* XP Home Edition, Windows* XP Tablet PC Edition, Windows Server* 2003, Windows* XP Media Center Edition, Windows Server* 2003 Standard Edition, Windows* XP 64-Bit Edition Version 2003

This applies to:
Intel® C++ Compiler for Windows*
Intel® Fortran Compiler for Windows*

Solution ID: CS-007855
Date Created: 15-Dec-2003
Last Modified: 10-May-2007