- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I have lots of code stretching beyond column 72. Also I am now using /fpp to help in my debugging sessions. These appear to be incompatible. Example below:
t1.for:
!DEC$ FIXEDFORMLINESIZE: 132
subroutine test(yyy)
subroutine test(yyy)
integer j,iun,nm2
real*8 yyy,pc_inter(10)
real*8 yyy,pc_inter(10)
nm2 = 10
write(iun,'(a,e16.8)') ' PrsI: ', (pc_inter(j),j=1,nm2)
return
end
return
end
compile with:
ifort /nologo /c /iface:cvf /Od /Zi /check:all /fpe:0 /dbglibs /Tft1.for /fpp
and I get:
t1.for(9) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: , )
write(iun,'(a,e16.8)') ' PrsI: ', (pc_inter(j),j=1,nm2
------------------------------------------------------------------------^
write(iun,'(a,
------------------------------------------------------------------------^
So it seems it's losing the last ) which is column 73, even though I have specified that line line must stretch to 132. It compiles OK without the /fpp.
Any idea why?
Adrian
링크가 복사됨
2 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
A long time ago, we established that fpp pre-processing wasn't fully supported for fixed form extended source format. I haven't heard of any change. I think all the files in the compiler include directory would have to change accordingly, where they have free form continuation marks in column 73. I have used only the command line option for fixed form extended, but that may not make any difference.
In many cases, we use separate pre-processors, where we don't want the specific features of ifort /fpp. The problem, of course, is this works well only in a Makefile build environment, not AFAIK under Visual Studio.
In many cases, we use separate pre-processors, where we don't want the specific features of ifort /fpp. The problem, of course, is this works well only in a Makefile build environment, not AFAIK under Visual Studio.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
If you add /extend_source to your command line, then fpp will see beyond character 72.
fppdoesnot parsethe !dec$fixedformlinesize statement; it works on the C-style preprocessing statements only.
I do understand (really!) that you put in the statement above so you wouldn't have to explicitly set the /extend_source command line option, but that's not how fpp works now.
- Lorri