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

Puzzling Compile error #6406

WSinc
New Contributor I
1,632 Views
Why do I get that for every variable in the COMMON block?
But I only get it when I include it in DERBOX, but not TERMV.
Yet, Both have the same INCLUDE statement.

I just can't see where I have declared anything more than once...
Doing a CLEAN first makes no difference.

Does the placement of the COMMON block make any difference?
Should it be in the same folder as the other routines?
I tried moving it around, made no difference.....
0 Kudos
1 Solution
reinhold-bader
New Contributor II
1,632 Views
Hello,

by including obj001.cmn twice in derbox.F90, you have effectively declared the contained entities twice.

Regards
Reinhold

View solution in original post

0 Kudos
2 Replies
reinhold-bader
New Contributor II
1,633 Views
Hello,

by including obj001.cmn twice in derbox.F90, you have effectively declared the contained entities twice.

Regards
Reinhold
0 Kudos
WSinc
New Contributor I
1,632 Views
Yep, my bad...

I missed the 2nd include statement.
0 Kudos
Reply