- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Having added an interface assignment, I have had to modify my code as
module type
use type_declares
interface assignment(=)
...
end module
module type_declares
... various definitions ...
end module
When I come to compile I get an error message that type_declares could not be opened.
If I compile type_declares, then type, this is reported as two succesful compiles.
If I load the project inside Compaq Visual Fortran 6.1A then this compiles.
But using the IDE/Intel Fortran 9.1, I get this failure. The error message is
D:CodeTechneauCoreTypes.f90(2): Error: Error in opening the Library module file. [TYPE_DECLARES]
Is there any work-around to this problem?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Fortran language requires that a module be "available" before it is referenced. The best solution is to put each module in its own source file. Failing that, move TYPE_DECLARES to the top of the source so that it is compiled first.
I think you misunderstood something if you thought CVF 6.1 did this any differently.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
The modules *are* in separate files.
And DVF does compile them with no error message, while IVF does not. I'm using both within their respective Visual Studio IDEs.
The problem appears to be that I was using 'Build solution' rather than 'Build [project name]' - when I use 'Build [project name]' then I get the same behaviour as with DVF. I had thought that for a solution that contained a single project there would be no difference.
On a side note, I can post to this forum if I use Microsoft Internet Explorer, but when I try to use Firefox Firefox freezes, and has to be killed using the Task Manager. Are there any plans to make this web forum work with non-Microsoft solutions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In VS2005 :
(a) Look at Project Properties Configuration Manager - ensure that the build box is ticked on.
(2) Look at Project, Project Dependencies and ensure that the build order is correct (A depends on B and box for B is ticked on) for solutions containing two or more projects.
I have had a few problems converting VS2003 solutions and projects toVS2005 where these setting were not carried over correctly during the conversion.
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should work with Build Solution, unless something is misconfigured. I have seen this happen when there are two source files that build the same moduke.
As for the forum and Firefox - this is a bug I reported a while ago. A workaround is to wait until you get the warning about unresponsive script, click Continue and then press the space bar. Another is to use the IE Tab add-on to Firefox.
![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page