为什么我用gfortran编译器得到不同的错误? [英] Why I get different errors with gfortran compiler?

查看:180
本文介绍了为什么我用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.

推荐答案

该项目是为不同的开发而创建的环境(不同的编译器和实用程序)。



使用的选项 / machine /子系统(我猜是链接器选项)似乎是在使用GNU Fortran编译器时用于不同的编译器/链接器。



检查make文件中的那些选项(我希望它们在链接器命令上)。删除它们可能会有所帮助。
The project has been created for a different development environment (different compiler and utilities).

The used options /machine and /subsystem (which I guess are linker options) seem to be for a different compiler / linker while you are using the GNU Fortran compiler.

Check the make file for those options (I expect them on a linker command). It might help to just remove them.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆