Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
27788 Discussions

include file: In one source file, some subs can include it, some can't.

cean
New Contributor I
181 Views

Hi,

 

My one source for(F77) file has many subroutines. Some of them include one same include file which is about common block. I got an error #5102: Cannot open include file 'MYCOM.FOR' for 3 of the subroutines. 

 

Any idea what should I look to see why these 3 subs is different, while there are 30+ subs have no problem to include.

 

Cheers,

 

Cean

 

 

0 Kudos
1 Reply
mecej4
Black Belt
171 Views

Please display in detail at least one instance of each: subroutine with INCLUDE that the compiler accepts, and another where it is rejected. You can, instead, zip the source and include files and attach the zip to your reply.

Reply