I installed the gcc 6.7 compiler with fink and I can now compile Fortran code, but not execute it. On runtime there is the following error:
dyld: Library not loaded: /sw/lib/gcc5/lib/libgfortran.3.dylib
and even after running 'fink selfupdate' this persists.
'which gfortran' returns '/sw/bin/gfortran'
and
'which gcc' returns '/usr/bin/gcc'
I suspect there is a problem with linking the libraries. How could I resolve this?