Hey,
I'm trying to compile a Hello World using gfortran on a Mac.
This is the program:
test.f
PROGRAM HelloWorld
WRITE(*,*) "Hello World!"
END PROGRAM
this is what I do:
gfortran test.f
and I get a bunch of errors:
In file Desktop/test.f:1
{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:1
{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:2
{\fonttbl\f0\fmodern\fcharset77 Courier;}
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:2
{\fonttbl\f0\fmodern\fcharset77 Courier;}
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:2
{\fonttbl\f0\fmodern\fcharset77 Courier;}
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:3
{\colortbl;\red255\green255\blue255;}
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:3
{\colortbl;\red255\green255\blue255;}
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:3
{\colortbl;\red255\green255\blue255;}
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:3
{\colortbl;\red255\green255\blue255;}
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:4
\paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkin
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:4
\paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkin
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:5
\deftab720
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:5
\deftab720
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:6
\pard\pardeftab720\ql\qnatural
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:6
\pard\pardeftab720\ql\qnatural
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:8
\f0\fs26 \cf0 PROGRAM HelloWorld\
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:8
\f0\fs26 \cf0 PROGRAM HelloWorld\
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:9
WRITE(*,*) "Hello World!"\
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:9
WRITE(*,*) "Hello World!"\
1
Error: Unclassifiable statement at (1)
In file Desktop/test.f:10
END PROGRAM}
1
Error: Non-numeric character in statement label at (1)
In file Desktop/test.f:10
END PROGRAM}
1
Error: Unclassifiable statement at (1)
whats wrong?
thanks
"Through me the road to the city of desolation,Through me the road to sorrows diuturnal,Through me the road among the lost creation."