Fortran: Pointers in Common Blocks

I’m unexperienced in Fortran. I’m trying to declare a memory pointer in a file named ‘common’, then allocate memory for that pointer in a file named "main.f", then call a subroutine from another file named "PrintArray.f". The whole thing seg faults in "PrintArray.f". How can I correct this? This is the file named ‘common’: REAL,… Read More Fortran: Pointers in Common Blocks

How to make a Fortran Makefiles with object files (.o) and a share library (.so)?

I am totally new to the world of Makefiles. I tried to follow some tutorials to make my own makefile. In the examples that I found there was no treatment for a case including object files (.o) and shared libraries (.so). So, I tried to inspire but it seems that there is something missing in… Read More How to make a Fortran Makefiles with object files (.o) and a share library (.so)?