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

IDE best practice for mixed mode C/C++ and Fortran

frodoh
Beginner
543 Views

I am using Intel Fortran 9.1 with Microsoft Visual Studio 2005. I've noticed that setting compiler switches for C/C++ is not available in Fortran projects. Is it best to segregate projects by language so that Fortran code is placed in a static library project and C/C++ code is placed in a DLL or EXE project or is there a way to set both sets of switches within the same project the way it was with CVF?

Thanks.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
543 Views
Microsoft removed the ability to have mixed-language projects in VS.NET 2002. The way you have to organize a mixed-language application is to have two projects, one for Fortran and one for C, with one being a static library and the other an EXE or DLL, as you found. You will have to set the project options separately.
0 Kudos
Reply