Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/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和code::blocks中选择的_real_种类_Fortran_Codeblocks_Gfortran - Fatal编程技术网

gfortran和code::blocks中选择的_real_种类

gfortran和code::blocks中选择的_real_种类,fortran,codeblocks,gfortran,Fortran,Codeblocks,Gfortran,我试图编译一个程序 program test integer,parameter :: p6 = selected_real_kind(6) end program test 使用gfortran和code::blocks。但我在生成日志窗口中收到一条错误消息: f951.exe: internal compiler error: Illegal instruction libbacktrace could not find executable to open Please su

我试图编译一个程序

program test

    integer,parameter :: p6 = selected_real_kind(6)

end program test
使用gfortran和code::blocks。但我在生成日志窗口中收到一条错误消息:

f951.exe: internal compiler error: Illegal instruction
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
f951.exe:内部编译器错误:指令非法
libbacktrace找不到要打开的可执行文件
请提交完整的bug报告,
如果合适,使用预处理源。
有关说明,请参阅。
进程以状态1终止(0分钟,0秒))
0个错误、0个警告(0分钟、0秒)

我的代码或设置有什么问题?谢谢你的帮助

所以,看起来OP目前使用的是一个相当旧的开发版本,因此,OP出现内部编译器错误并不奇怪。根据我的经验,我推荐使用MinGW-w64的构建,比如MinGW构建,可以从(为32位窗口生成二进制文件)或(为64位窗口生成二进制文件)下载

mingw构建有几个不同的变体。对于32位大小写,我建议使用,而对于64位大小写-


另外,目前我不推荐GCC5使用大型代码库,因为我在使用它时很少遇到内部编译器错误。GCC 4.9.2现在是一个更安全的赌注。

这是哪个gfortran?你从哪里得到的,版本是什么?我从(2014-06-29)下载了gfortran,谢谢。我将尝试安装您推荐的版本。