本文介绍了为什么我用gfortran编译器得到不同的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建项目时(

||=== Build: Win32 Release in matrix_edit (compiler: GNU Fortran Compiler) ===|

)我得到

gfortran.exe error /machine: I386 : No such file or directory

gfortran.exe: error: /subsystem: console : No such file or directory



我在Windows 7上使用CodeBlocks 17.12和MinGW编译器 - 64位。



我尝试过:



我试图重新安装编译器和CodeBlocks,但它没有帮助。

我尝试了其他项目构建,但是我收到了意外的模块结束错误,但是项目代码是正确的(因为我的同事把它作为工作程序传递给我)。

我也用Hello world进行了测试!项目,它运作良好。唯一的问题是exe只有当我将所有dll库从CodeBlocks bin文件夹复制到包含exe的文件夹时才有效。

.
I use CodeBlocks 17.12 with MinGW compilers on Windows 7 - 64 bit.

What I have tried:

I tried to reinstall compiler and CodeBlocks, but it didn't help.
I tried other project to build, but I got "Unexpected end of module" error, nevertheless the project code is correct (as my colleague passed me it as a working program).
Also I made a test with Hello world! project and it worked well. The only problem was that exe worked only when I copied all dll libraries from CodeBlocks bin folder to the folder containing exe.

推荐答案


这篇关于为什么我用gfortran编译器得到不同的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-27 22:54