Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to build a Fortran project ???
How to build a Fortran project ??? [message #1708041] Fri, 11 September 2015 16:35
Julien Colin is currently offline Julien ColinFriend
Messages: 2
Registered: September 2015
Junior Member

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:
- 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

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.

Previous Topic:How to build a Fortran project ???
Next Topic:Custom application based on Eclipse IDE
Goto Forum:

Current Time: Sat Oct 31 16:04:46 GMT 2020

Powered by FUDForum. Page generated in 0.03523 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top