Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Module dependencies with 'include' statements

$
0
0

I am using VS2010 with Intel(R) Composer XE 2013 SP1 Update 1 (package 139)

I have the following:

modA.f90

module A
contains
include 'functions.fi'
end module A

functions.fi

subroutine f
use B
end subroutine f

In the context of the project I'm working with this structure causes a build failure because modA.f90 is compiled before modB.f90, implying that the parser doesn't detect the dependency A:B. If I compile B first then a Project Only build is successful.

Is this the expected behaviour? Is there a way of adding this dependency to the project? I could add a 'use B' into module A (and that is how I'll fix this problem) but it shouldn't be necessary should it?

Thanks.

 

 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>