Plot module for fortran so that plotting can be done in real time (on the fly)
gcc -c cgprint.c # Creates cgprint.o
gfortran -c fortplot.f90 # Creates fortplot.o
gfortran -c example.f90 # Creates example.o
gfortran cgprint.o fortplot.o example.o # Creates a.out (on linux) and a.exe (on windows)
./a.out # On linux
a.exe # On windows
gcc -c cgprint.c # Creates cgprint.o
gfortran -c fortplot.f90 # Creates fortplot.o
ar qc libfp.a fortplot.o cgprint.o # Creates libfp.a
sudo mv libfp.a /usr/lib/ # On linux
move libfp.a C:\mingw64\lib\gcc\x86_64-w64-mingw32\8.2.0\ # With mingw installation
move libfp.a C:\Strawberry\c\lib\gcc\x86_64-w64-mingw32\4.9.2 # With strawberry gcc installation
gcc -v
gcc_version="7.5.0"
sudo mv fortplot.mod /usr/lib/gcc/x86_64-linux-gnu/${gcc_version}/finclude/ # On linux
move fortplot.mod C:\mingw64\lib\gcc\x86_64-w64-mingw32\8.2.0\finclude # With mingw installation
move fortplot.mod C:\Strawberry\c\lib\gcc\x86_64-w64-mingw32\4.9.2\finclude # With strawberry gcc installation
gfortran example.f90 -lfp
./a.out # On linux
a.exe # On windows