- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, there isn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page