Block Data already defined

Brooks Moses brooks.moses@codesourcery.com
Fri Jun 8 06:59:00 GMT 2007


Larry Blodgett wrote:
> I have searched and searched for a duplication.  Where can I find the  
> duplication?

Unfortunately, without a code sample that illustrates the problem you're 
having, or even a copy of the error message, I have no idea.

Can you please try reducing your code to a small complete testcase that 
reproduces the problem, and forward that to the list along with a copy 
of your compilation command including any option flags you're using, and 
the exact error message that you get?

If you need help with reducing your code to a small testcase, ask and 
I'll see if I can find some references.  The general process is to make 
a copy of the code, and then delete portions of it that appear to be 
unrelated to the bug, recompiling after each step to confirm that the 
error remains.  If the error goes away, add back in the last bit that 
you deleted, and try removing something else.  Repeat until there's 
nothing left that can be removed.  Except in rare cases, the end result 
should be no longer than 50 lines, and it's usually a lot shorter.

(That can be a good debugging technique in general; often, when you're 
reducing the code, you'll get about halfway through and realize where 
the bug is coming from because you can now see it clearly.)

Hope this helps,
- Brooks



More information about the Fortran mailing list