Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Problem Implementing Eclipse 2019-06 with Fortran

Many Thanks! I can't tell you how pleased I am, your instructions solved the problem.

One additional thing, is it possible to use PCI FORGRAN with Eclipse?

On 09/09/2019 12:23 PM, Greg Watson wrote:
Hi Stephen,

Thanks for your patience. There have been some recent changes in other Eclipse projects that have made it a bit more difficult to find the correct way to create a Fortran project. I???m trying to work out how to make it easier again.

Here???s what I had to do starting from a completely new workspace:

1. Go to the workbench (icon in top right corner of welcome page)
2. Ignore what it says in the project explorer for now.
3. Go to File>New>Other???
4. In the ???Select a wizard??? dialog, expend Fortran and choose Fortran Project. Click on Next>
5. Enter a name for the project and select Executable (Gnu Fortran on Linux/*nix).
6. If you don???t see any Toolchains, unselect ???Show project types ??????
7. Click on Finish

Now you should have an empty Fortran project. You can right click on the project and select New>Fortran Source File. Enter a file name in the Source file: field (e.g. test.f90). Click Finish and the editor should open on a new file.

Note that if you go to File>New you should see "Fortran Project" there now. So creating subsequent projects is a bit easier.

Let me know if this helps.

Regards,
Greg

On Sep 7, 2019, at 2:57 PM, Stephen P. Molnar <s.molnar@xxxxxxxxxxxxx> wrote:

I am a new user for Eclipse, although I have been using computers since the early 1960's for my work.

I downloaded the 2019-06 version for my Debian Linux platform and elected to install the Eclipse for Scientific Computing as my first programming language was FORTRAN II (yes, there was that version.) I then downloaded and installed PyDEV as I am also using Python for some of my applications. But enough background.

Implementing Python presented no problems. FORTRAN, however, is another matter.

I have been trying to follow the steps in the 'Starting a Project with an Auto-Generated Makefile" in Help.

Step 3. Choose "Executable (Gun Fortran)' from the project type list.  The problem is that there is no such selection in Executable pull down menu. Unchecking the "Show project type .  .   ." dones not expand the list.

There is an entry "Executable (Gnu Fortran on Linux/*nix)" in the Others pull down menu.

At this point, about ready to give up, but on a whim, i opened a terminal and ran 'gfortran hello.f90' which resulted in an executable a.out file, which, when run output 'Hello World.  But, when I clicked on Build Targets/HelloFortran/Debug/hello I got the followign errors:

14:53:00 **** Build of configuration Debug for project HelloFortran ****
make hello
cc   hello.o   -o hello
/usr/bin/ld: hello.o: in function `MAIN__':
/home/comp/Apps/Eclipse/workspace/HelloFortran/Debug/../hello.f90:3: undefined reference to `_gfortran_st_write'
/usr/bin/ld: /home/comp/Apps/Eclipse/workspace/HelloFortran/Debug/../hello.f90:3: undefined reference to `_gfortran_transfer_character_write'
/usr/bin/ld: /home/comp/Apps/Eclipse/workspace/HelloFortran/Debug/../hello.f90:3: undefined reference to `_gfortran_st_write_done'
/usr/bin/ld: hello.o: in function `main':
/home/comp/Apps/Eclipse/workspace/HelloFortran/Debug/../hello.f90:4: undefined reference to `_gfortran_set_args'
/usr/bin/ld: /home/comp/Apps/Eclipse/workspace/HelloFortran/Debug/../hello.f90:4: undefined reference to `_gfortran_set_options'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: hello] Error 1
"make hello" terminated with exit code 2. Build might be incomplete.

14:53:01 Build Failed. 8 errors, 0 warnings. (took 300ms)

At this point an excess of mental entropy made me decide to take an break and compose this message.

Is there a better source of help than the Eclipse Help Files?

I appreciate the effort expended to read to this point.

Thanks in advance.

--
Stephen P. Molnar, Ph.D.            Life is a fuzzy set
http://www.Molecular-Modeling.net    Multivariate and stochastic
614.312.7528 (c)
Skype:  smolnar1

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/photran
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/photran

--
Stephen P. Molnar, Ph.D.            Life is a fuzzy set
http://www.Molecular-Modeling.net   Multivariate and stochastic
614.312.7528 (c)
Skype:  smolnar1



Back to the top