Operating System - HP-UX
1752803 Members
5758 Online
108789 Solutions
New Discussion

Error compiling Hello World on HPUX Fortran90 - HP9000 rp5470

 
Finis Conner
Advisor

Error compiling Hello World on HPUX Fortran90 - HP9000 rp5470

Hello all!

 

I can't compile anything with Fortran90 in HPUX 11.23 running on a rp5470 7G RAM, 4x550Mhz. I wrote with vi the simplest program

 

 

This is no exact lines, but the real file was copied from manuals.:

 

PROGRAM hello

PRINT *,"Hello World"

END PROGRAM hello

and returns every kind of errors:

 

Even without the line PRINT... there is errors. The installation was fine... What could be happen?

 

Best regards and thank you in advance.

 

main program

program hello
Error 714 at (1:test.f) : invalid label field
Error 715 at (1:test.f) : invalid continuation line
Error 707 at (1:test.f) : incomplete statement
print *,"hello world"
Error 714 at (2:test.f) : invalid label field
Error 724 at (2:test.f) : syntax error
end program hello
Error 716 at (3:test.f) : label field must be blank
print *,"hello world"
Error 720 at (2:test.f) : invalid octal constant
Error 738 : END statement is missing
8 Errors
f90: error 213: Errors detected, no link.
# f90 hello.f

2 REPLIES 2
Steven Schweda
Honored Contributor

Re: Error compiling Hello World on HPUX Fortran90 - HP9000 rp5470

 
Finis Conner
Advisor

Re: Error compiling Hello World on HPUX Fortran90 - HP9000 rp5470

Hello Steven, thank you a lot for your aid. Yes, I need to read a lot of manuals :-)
The code was
program hello
print *, "Hello World!"
end program hello

 

I said that didn't have the exact code because as returned errors, tested several variations of the above. May be indentation as you noted.

 

I compiled with # f90 hello.f. Maybe it needs some command line extras...

 

I'm not near to the rp5470, it is at an office where I'll go this week end. After testing, I comment to you.

 

Sorry for my english...

Best regards!