下面给出一个fortran条件预处理的程序
编译器为IVF
在linux上的程序命令与windows的有差别
比如linux: mv 1.txt 2.txt
windows: move 1.txt 2.txt
!DEC$ define linux
program test
implicit none
!DEC$ if defined (linux)
call system( 'mv ' // '1.txt 2.txt' )
!DEC$ else
call system( 'move ' // '1.txt 2.txt' )
!DEC$ endif
end program test