开发者

fortran code won't compile in MinGW

开发者 https://www.devze.com 2023-03-31 05:58 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号