Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] How to build a Fortran project ???

Hi,

Sorry, I am not a expert. I don't find my answer on this forum and Internet or maybe I don't understand these answers.

I developed a Fortran program on Windows through an old IDE: Compact Visual Fortran.

I am now a Mac user and I want to develop and run my program thanks to Eclipse. But I haven't succeed yet.

I used this tutorial for installation:
https://wiki.eclipse.org/PTP/photran/documentation/photran9installation
- I updated my Java Virtual Machine (1.8)
- I installed Gfortran
- I didn't understand how to install or use the make program (GNU make). I don't know which file to download (make-4.1.tar.bz2 or .bz2.sig or .gz or .gz.sig) and I don't know what to do after downloading. However, Xcode Command Line Tools are installed on my Mac.
- I installed Eclipse for Parallel Application Developpers 4.5.0.

My program is split into three files:

*Modules.f90* which contains:
Module Modul
Implicit None
...
End Module Modul

*Subroutines.f90* which contains:
Subroutine Sub1()
Use Modul
Implicit none
...
End Subroutine Sub1
Subroutine Sub2()
Use Modul
Implicit none
...
End Subroutine Sub2
...
Subroutine SubN()
Use Modul
Implicit none
...
End Subroutine SubN

*Main_program.f90* which contains:
Program Main
Use Modul
Implicit none
...
End

When I click on the button "Build 'Debug' for project 'name_of_my_project'", a problem occurs:
'Build Project' has encountered a problem. An internal error occurred during: "Build Project".
Could not find a file to match the module name: Modul

For sure, my program works: I can build the project and run my program when I copy all the content of Modules.f90 and Subroutines.f90 into Main_program.f90.
To my mind, Eclipse doesn't link together the source files of the program and I don't now how to do it.

I have looked for a solution for two weeks...
Could anyone help me by explaining how to do step by step?

Sorry: maybe my question is stupid.

Thanks a lot for your answers.

Julien.

---
Julien COLIN


Back to the top