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

Compilation Order

smedvedoff
Beginner
745 Views
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.
0 Kudos
4 Replies
ipattielgc
Beginner
745 Views

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

0 Kudos
Steven_L_Intel1
Employee
745 Views
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.
0 Kudos
smedvedoff
Beginner
745 Views

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

0 Kudos
smedvedoff
Beginner
745 Views

Thanks Steve. Sounds like we probably should upgrade to IVF.

Steve

0 Kudos
Reply