为什么gfortran在cygwin can';你不能正确编译吗?
我在windows和gfortran软件包下安装了cygwin 然后我编写了一个简单的f90文件为什么gfortran在cygwin can';你不能正确编译吗?,cygwin,gfortran,Cygwin,Gfortran,我在windows和gfortran软件包下安装了cygwin 然后我编写了一个简单的f90文件 program test implicit none write(*,*) "hello world" end program test 文件名为test.f90 然后我打开cygwin终端并写入 gfortran -o test.exe test.f90 一切正常,没有错误,生成了test.exe 但是 没有输出任何内容。怎么了 test.exe是共享的WFM。您是否安装了libgfortra
program test
implicit none
write(*,*) "hello world"
end program test
文件名为test.f90
然后我打开cygwin终端并写入
gfortran -o test.exe test.f90
一切正常,没有错误,生成了test.exe
但是
没有输出任何内容。怎么了
test.exe是共享的WFM。您是否安装了
libgfortran3
,是否在Cygwin shell(例如bash
)或cmd
窗口中运行了/test.exe
?我已安装libgfortran3并在Cygwin shell中运行了/test.exe。无论如何,因为它是一个exe,所以它应该在cmd窗口中工作,对吗?在我看来,test.exe并没有被链接到任何Cygwin dll。您的计算机上是否安装了其他版本的gfortran?
./test.exe