Advertisement
hackerboxes

fortran linux

Aug 16th, 2012
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. vi test.f90:
  2. program main
  3. write(*,*) "hello"
  4. stop
  5. end
  6.  
  7. gfortran filename.f90 -o anyname 按回车,会生成一个anyname.out的可执行文件
  8. ./anyname 运行此可执行文件就OK了,结果会输出到所设定的位置上
  9. ifort -o test.f90 test.ex,如果没有出现错误信息,说明编译通过,然后直接输入 test.ex,回车即可。
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement