作者bcs (= ="frailty..gggg XD)
看板Fortran
标题Re: [问题] G95编译
时间Thu Nov 20 19:43:37 2008
我用squares.f试用g95的程式,会出现很多错误讯号,
但CVF上却是ok的。
请问使用g95需要特别注意的吗?
谢谢
program squares
implicit none
! this program computes the first 100 squares
! and prints them to the screen
integer i
do i=1,100
write(*,*) i,i*i
end do
end program
cmd
cd c:\g95\bin
g95 squares.f
error message
In file squares.f:1
program squares
1
Error: Non-numeric character in statement label at (1)
In file squares.f:1
program squares
1
Error: Unclassifiable statement at (1)
In file squares.f:2
implicit none
1
Error: Non-numeric character in statement label at (1)
In file squares.f:2
implicit none
1
Error: Unclassifiable statement at (1)
In file squares.f:5
integer i
1
Error: Non-numeric character in statement label at (1)
In file squares.f:5
integer i
1
Error: Unclassifiable statement at (1)
In file squares.f:7
write(*,*) i,i*i
1
Error: Non-numeric character in statement label at (1)
In file squares.f:7
write(*,*) i,i*i
1
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.86.139
1F:推 k1942:.F90 .F 会不会有差别啊 11/20 21:12
2F:→ acyang:.f是fix format所以要从第七格开始写 11/20 22:45
3F:→ bcs:把g95\lib\*.o *.a 复制到 g95\lib\...\4.0.4 才能使用 11/20 23:16
4F:→ bcs:不然会有ld: crt2.o: No such file: …希望没有人遇到这问题:> 11/20 23:17
5F:推 latinboy:副档名改成*.f90 11/21 20:37