Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When building a project (
||=== Build: Win32 Release in matrix_edit (compiler: GNU Fortran Compiler) ===|
) I get
gfortran.exe error /machine: I386 : No such file or directory
and
gfortran.exe: error: /subsystem: console : No such file or directory
.
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.
Posted
Updated 22-Mar-18 22:14pm

1 solution

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.
 
Share this answer
 
Comments
Nikolay Yasinskiy 23-Mar-18 8:51am    
Thank you! I rebuilt the project changing the ext. of file to .f90. That helped.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900