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

Compile order from IDE environment (VS2008)

giovanni_81
Beginner
400 Views
I use Intel Visual Fortran 10.1.029 with Visual Studio 2008. I have the following problem:
by compiling the same Fortran project in Visual Studio 2008 with the same files from two different PCs (the project which is compiled is located in a network disk so it really is the same for both PCs) I get two different exe files. The same version of Visual Studio (2008 Professional) and Intel Visual Fortran (10.1.029) are installed in both PCs. Analyzing the respective "BuildLog.htm" files I noticed that files are compiled in a different order depending on which PC is used (even if the project is the same).
However, using a batch file I managed to compile the projects files (.for) according to a fixed order and the resulting exe files of the two compilations on the two PCs are the same.
Does it exist a way or an option in the Visual Studio 2008 IDE to specify the compilation order of the files?

Thank you,

regards.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
400 Views
No, there is not a way to specify the compilation order. Visual Studio picks an order that satisfies the build dependencies, but if there is more than one such order you can't predict which it will choose. Having the sources on a network share introduces some more variance as file timestamps have lower granularity than for local files.
0 Kudos
Reply