I'm using Git PowerShell to compile Fortran code with gfortran on windows 10.
Recently, I had to restart my computer. When reopened, git asked if I would like to update to the latest version (2.6.2). I accepted. After doing so, I found that my code no longer successfully compiles.
First, I was getting the error
undefined reference to 'WinMain'
From this post, I tried adding the following compiler flag:
FCFLAGS += -Wl,-subsystem,windows
to my list of flags. But now I'm getting this error:
....bj//MOONS_solver.o ./obj//MOONS_main.o ./obj//main.o
gfortran.exe: error: ./o: No such file or directory
make: *** [F:/Property_of_C_Kawczynski/SIMS/Bandaru/Q8/MOONS.exe] Error 1
I'm looking for a solution to the compilation issue, or, if there's an easy way for me to go back to the previous version of Git (which, ironically, I've had a lot of trouble finding any relevant search results), I'm all ears.