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

Using Intel and Compaq Fortran with same code (not at same time!)

nameiii
Beginner
814 Views
We are about to convert to Intel Fortran (with Visual Studio .NET 2003) from Compaq (6.6) - about time too I hear you say! But I would like to keep the option, for a while at least,of compiling with either compiler.

When using the Intel project conversion wizard, there is a warning message along the lines of "you will not be able to edit this project in previous versions of Visual Studio". This doesn't say anything about "Developer studio" as used by Compaq Fortran and in practice it seems to be OK - it looks like the studio files (.sln, .dsw etc) are disjoint between the two systems. Can anyone confirm that this is the case and that it is safe to use the two compilers with the associated studios in parallel for different builds on the same project?

Many thanks
0 Kudos
1 Solution
Steven_L_Intel1
Employee
814 Views
The warning is telling you that changes you make in the Intel Fortran project settings will not be visible in CVF and vice-versa. As noted, make sure that the output directories are distinct. You can, of course, have entirely separate project directory trees and add sources from a common location - there's no requirement that sources be contained within the project/solution directory tree.

View solution in original post

0 Kudos
4 Replies
ZlamalJakub
New Contributor III
814 Views
I am using the same fortran sources in Intel and CVF compiler (but copied in different directories).

Problem can occur in compiled *.obj and *.mod files, because they are not compatible.

If You ensure that CVF will compile all sources to let say CVF/Debug and IVF to IVF/Debug subdirectories it should work correctly together.

Jakub
0 Kudos
Steven_L_Intel1
Employee
815 Views
The warning is telling you that changes you make in the Intel Fortran project settings will not be visible in CVF and vice-versa. As noted, make sure that the output directories are distinct. You can, of course, have entirely separate project directory trees and add sources from a common location - there's no requirement that sources be contained within the project/solution directory tree.
0 Kudos
lklawrie
Beginner
814 Views

I too have both CVF and IVF on my computer and running our codes on both. Which means we limit the number of 2003 items we can put into CVF. Sometimes I have written "CVF only" routines to supplement. (I also have g95 as a test compiler).

I'd suggest you don't do the project conversion wizard and start from scratch with IVF in a different folder.

Linda
0 Kudos
nameiii
Beginner
814 Views
Many thanks to all three responses to my question. I now know exactly what to do.
0 Kudos
Reply