suicidaleggroll, I now have time to implement your suggestion to get rid of the COMMON blocks. I started with compiling and running the code you posted. Here, I need an explanation about the command line parameters/command options you used. I found one of them
here. And that is
-fbounds-check which appears to be a deprecated form of
-fcheck=bounds, the latter being a new variant.
Code:
$ gfortran -Wall -fbounds-check -c subs.f90
$ gfortran -Wall -fbounds-check main.f90 subs.o
However I could not find
-Wall &
-c options. What are they?
Your command line options provide a "cleaner" compilation output. When I apply
Code:
gfortran sub_mod.f90
command I get two dozen lines like this"
Code:
/usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
With your options it just compiles. So, what are the options:
-Wall &
-c ?
I may have other questions later. Appreciate your help. Thanks, - Alex