I installed g95, gcc42 via pkg_add -r g95; pkg_add -r gcc42. Then I wrote a hello world program in fortran90 form.
I type g95 hello.f90, it says
and gcc it says
So, what should i do to compile fortran90 programs on my computer?
Code:
hello.f90
program hello
write(*,*) 'hello world'
end
Code:
[g@g /usr/home/g]$ g95 hello.f90
ld: cannot find -lf95
Code:
[g@g /usr/home/g]$ gcc hello.f90
gcc: hello.f90: Fortran compiler not installed on this system