[問題] f90檔編譯問題求助

作者: takaoclass (高雄級)   2018-04-20 16:07:45
我是重拾fortran不久的新手,
我在putty上用vi編輯器寫了一隻f90檔,
用gfortran hello.f90和gfortran -o k.exe hello.f90編譯時,
都得到以下錯誤訊息:
Error: Unexcepted end of file in 'hello.f90'
可是我用gfortran指令編譯f檔卻毫無問題,
請哪位高手給我指點一下,感謝!
作者: alen84204 (Dana)   2018-04-21 12:53:00
Options starting with -g, -f, -m, -O, -W, or--param are automatically passed on tothe various sub-processes invoked by gfortran.In order to pass other options on to these processethe -W<letter> options must be used.
作者: fragmentwing (片翼碎夢)   2017-04-18 11:14:00
等等 你exe這樣編是不是放錯了 應該跟f90一樣 被編譯檔在前 編譯檔命名名稱在-o後

Links booklink

Contact Us: admin [ a t ] ucptt.com