Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么gfortran在cygwin can';你不能正确编译吗?_Cygwin_Gfortran - Fatal编程技术网

为什么gfortran在cygwin can';你不能正确编译吗?

为什么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

我在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。您是否安装了
libgfortran3
,是否在Cygwin shell(例如
bash
)或
cmd
窗口中运行了
/test.exe
?我已安装libgfortran3并在Cygwin shell中运行了/test.exe。无论如何,因为它是一个exe,所以它应该在cmd窗口中工作,对吗?在我看来,test.exe并没有被链接到任何Cygwin dll。您的计算机上是否安装了其他版本的gfortran?
./test.exe