fortran code won't compile in MinGW
I am using the newest available version of MinGW, with fortran packages. My code compiles perfectly in linux, but in windows I get the following error:
" ... undefined reference to `_gfortran_transfer_real'| "
and a bunch of similar ones. How can I fix this?
edit: the above error comes from this line:
write(chpar,600) H3,T1,Omega0,dOmega,N
other lines that produce errors are:
call random_seed (SIZE=Nseed)
call random_seed (PUT=seed(1:Nseed))开发者_运维百科
edit2: I use the compiler options -gfortran -lgfortran, and it won't compile.
thanks
精彩评论