fortran problem

This forum should be used for all code folding problems, questions or suggestions. You can also use this forum to request folding support for a new language.
Post Reply
kevin
Posts: 1
Joined: Thu Aug 31, 2006 5:08 pm

fortran problem

Post by kevin »

I am new to fortran, so I don't know if this is my problem or the editor's(3.95a). I was just testing out a program on the editor.

Code: Select all

                                MODULE Triangle_Operations
     IMPLICIT NONE
    CONTAINS
     FUNCTION Area(x,y,z)
      REAL :: Area       ! function type
      REAL, INTENT( IN ) :: x, y, z
      REAL :: theta, height
      theta=ACOS((x**2+y**2-z**2)/(2.0*x*y))
      height=x*SIN(theta); Area=0.5*y*height
     END FUNCTION Area
    END MODULE Triangle_Operations

    PROGRAM Triangle
     USE Triangle_Operations
     IMPLICIT NONE
      REAL :: a, b, c, Area
      PRINT*, 'Welcome, please enter the&
             &lengths of the 3 sides.'
      READ*, a, b, c
      PRINT*,'Triangle''s area: ',Area(a,b,c)
    END PROGRAM Triangle
The error I got was 'forth.exe' is not recognized as an internal or external command,
operable program or batch file when I try to compile.

I got the same error with few other testing fortran codes.

Can anyone help here.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Kevin,

Even though Zeus comes pre-configured with some 20 or 30 document types, in all case these document types need to be tweaked to suit you current machine setup.

To better understand the Zeus configuration model take a look at the link below:

http://www.zeusedit.com/forum/viewtopic.php?t=31
The error I got was 'forth.exe' is not recognized as an internal or external command, operable program or batch file when I try to compile.

A similar thing needs to be done in the case of the fortran compiler.

I got the same error with few other testing fortran codes.

This error means that the forth compiler has not been configured in the document type.

Zeus does not ship with a forth compiler (or any compiler for that matter) you will need to configure the forth document type to point to the forth compiler installed on your machine. A similar configuration will also be needed for the fortran document type.

Here is some information on how this is done:

http://www.zeusedit.com/forum/viewtopic.php?t=32

Cheers Jussi
Post Reply