[fortran] g95 project

0

Witam,
czy ktoś pracował z kompilatorem Fortranu "g95 project"?Jestem zupełnie początkujący w dziedzinie programowania i nie wiem co mam zrobić po zainstalowaniu oprogramowania g95 aby rozpocząć naukę tego języka.Nie mogę niestety korzystać z innego kompilatora.Będę wdzięczny za pomoc.Pozdrawiam

0

Jest to kompilator konsolowy. Przydałby ci się jakiś edytor kodu, np. Edit Plus, do którego można podpinać różne kompilatory.

0

Dzięki za odpowiedź.Mam jednak kolejne pytanie.Udało mi się dostać edytor kodu w postaci CRIMSON EDITOR (nie mam na to wpływu).Ustawiłem preferencje podobnie jak dla C++ czyli

  1. Open Preferences dialog box and select User Tools page
  2. Select an empty slot and fill with the following arguments.
    * Menu Text: Compile Fortran
    * Command: C:\g95\bin\g95.exe
    * Argument: $(FileName)
    * Initial dir: $(FileDir)
    * Hot key: Ctrl+F7
    * Capture output: Yes
    * Save before execute: Yes
    Po przepisaniu przykładowego programu do edytora i zapisaniu go w formacie fortrana kompiluje napisany kod.Oto co się pojawia:

---------- Capture Output ----------

"C:\g95\bin\g95.exe" petle.f
In file petle.f:8

PROGRAM petle
1
Error: Non-numeric character in statement label at (1)
In file petle.f:8

PROGRAM petle
1
Error: Unclassifiable statement at (1)
In file petle.f:9

IMPLICIT NONE
1
Error: Non-numeric character in statement label at (1)
In file petle.f:9

IMPLICIT NONE
1
Error: Unclassifiable statement at (1)
In file petle.f:10

REAL :: suma
1
Error: Non-numeric character in statement label at (1)
In file petle.f:10

REAL :: suma
1
Error: Unclassifiable statement at (1)
In file petle.f:11

INTEGER :: i
1
Error: Non-numeric character in statement label at (1)
In file petle.f:11

INTEGER :: i
1
Error: Unclassifiable statement at (1)
In file petle.f:12

suma=0.0
1
Error: Non-numeric character in statement label at (1)
In file petle.f:13

sumowanie_a: DO i=123,174,1
1
Error: Non-numeric character in statement label at (1)
In file petle.f:14

suma=suma+1
1
Error: Non-numeric character in statement label at (1)
In file petle.f:15

END DO sumowanie_a
1
Error: Non-numeric character in statement label at (1)
In file petle.f:15

END DO sumowanie_a
1
Error: Unclassifiable statement at (1)
In file petle.f:16

WRITE(,) suma
1
Error: Non-numeric character in statement label at (1)
In file petle.f:16

WRITE(,) suma
1
Error: Unexpected array reference at (1)
Fatal Error: Too many errors, aborting.

Terminated with exit code 1.

Gdzie popełniam błąd?Dzięki za odpowiedź.Pozdrawiam

0

prawdopodobnie próbujesz kompilować kod Fortrana 95 jako Fortran 77. Nadaj pliku rozszerzenie .f90

0

Mają rozszerzenie .f90 ale teraz pojawia się taki komunikat:

---------- Capture Output ----------

"C:\g95\bin\g95.exe" Text1.f90
g95.exe: _spawnvp: No such file or directory

Terminated with exit code 1.

Na jednym z forum znalazłem taką odpowiedź:
"you used the wrong installer. only use the released versions, not the development ones."
Czy to oznacza, że potrzebuję innej wersji G95?
Dzięki za wcześniejsze odpowiedzi.
Pozdro

0

nie wiem, ściągnij to: http://ftp.g95.org/g95-MinGW.exe

1 użytkowników online, w tym zalogowanych: 0, gości: 1