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

error #7002: Error in opening the compiled module file

Tony_D_
Beginner
1,218 Views

I have a Visual Studio 2008 project where some of the fortran files 'use' a module containing interface definitions. When I rebuild the project, I get the following error at the point where the USE statement is:

error #7002: Error in opening the compiled module file Check INCLUDE paths

However, if I compile the module files first (right click then compile), and then build the project (not a rebuild) I do not get the error. The module files are definitely included in the project. Its almost as if there something wrong with the build order but I dont think I can change that.

Any ideas?

For info, I am using Intel FORTRAN compiler 11.0.075

0 Kudos
6 Replies
Steven_L_Intel1
Employee
1,218 Views

Something is causing the build order dependency analyzer to make a mistake. You're using a rather old version, and we've fixed some bugs in that area since 11.0. One issue I know of with older compilers is if you use the:

USE :: MODNAME

syntax with the :: - the dependency analyzer doesn't understand that. You can also run into problems if you have circular dependencies.
 

0 Kudos
andrew_4619
Honored Contributor III
1,218 Views

Normally when I get such issues I do a clean and the a build. If that fails I have often found it is because there are some circular dependencies so there no correct build order...

0 Kudos
Tony_D_
Beginner
1,218 Views

Thanks Steve and app4619.

I don't have the colons in the USE statement. None of the modules which are USE'd are USEing any other modules or files so I don't think I have a circular dependency. I tried a clean but I still get the problem.

Is there a way to tell if I have circular dependencies from the project file?

0 Kudos
Steven_L_Intel1
Employee
1,218 Views

No, there isn't.

0 Kudos
Tony_D_
Beginner
1,218 Views

Thanks.

For info, I don't think its a compiler issue. I have other similar projects in the same solution which use many of the same files (including the one that complains) but they build without any problem. The project settings appear to be the same but there must be something I am missing somewhere.

Thanks

Tony

0 Kudos
Tony_D_
Beginner
1,218 Views

I have just exited Visual Studio, then restarted it and now it appears to be OK. Not sure why but maybe one of the many changes I made in an attempt to find the problem has just taken effect?

0 Kudos
Reply