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

Build problem with MS Visual Studio 2010 and IVF 2011.11

Bernard_Candy
Beginner
567 Views
I have just moved my development environment to a new (Windows XP) machine,and I am having trouble building one solution.

The solution in question built successfullyon my old (Windows XP) machine with MS Visual Studio 2010 and IVF 2011.9.

I copied the solution to the new machine (using the same folder locations).

with a debug build...

When I select the option Rebuild SolutionI get a large number of build errors. These errors arise because a fortran module is usedbeforethe file containing the module hasbeen compiled. In other words it appears that Visual Studio is trying to compile the files in the wrong order.

If I manually compile each source file that contains a module then the solution is able to build. If there was still an option to "update dependencies" I wouldtry that.

With a release build...

If i run the resulting exe from the development environment I always get the message that the project is out-of date.

If I opt to build the solution it recompiles everysource code file(even though they have not been changed since the last build) but ultimately builds successfully.

I tried installing ivf 2011.11 but I get the same problem.



0 Kudos
3 Replies
Steven_L_Intel1
Employee
567 Views
Often this is caused by a circular module dependency, but not always. Try removing all the files from the project and then re-adding them.
0 Kudos
Bernard_Candy
Beginner
567 Views
Thanks very much Steve...after a long hunt I found the circular module depndency. The solution is now building with no problems.

It took a while to find the problem in my solution becuase of its size.Itlooks like the sort of task thatcould be automated without too much effort. Is there any chance of IVF including a check for the presence of this type of problem in a solution?
0 Kudos
Steven_L_Intel1
Employee
567 Views
I will submit a feature request to see if we can give an error in this situation.
0 Kudos
Reply