- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have several source files that use modules. The files containing the module definitions must be compiled first. Is there a way to specify compilation order within the developer? I've tried updating dependencies, but that doesn't seem to work for module dependencies. Another option would be to execute a script that compiles the modules first, but I'm not sure how (or if) I can invoke a script as a pre-compilation step from the developer. Can it be done? Any other solutions would be appreciated as well.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used to have that problem with CVF, but IVF 9.1 is very smart, and works well for me.
For CVF, you can create a library project that includes all the modules, and set the project dependcy to build it first. Make sure the output files go to the same directory as your main project and they will be up to date, or you can reference your dummy lib project.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since you talk about "update dependencies", that tells me you're using CVF which indeed could have this problem due to inadequacies in the build system there. It should not be seen in Intel Visual Fortran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Ian. I'd hoped to avoid moving all of the module files to a separate library project, but that might be the best approach.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve. Sounds like we probably should upgrade to IVF.
Steve

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