View previous topic :: View next topic |
Author |
Message |
LGF
Joined: 22 Apr 2008 Posts: 1 Location: U.K.
|
Posted: Wed Apr 23, 2008 12:38 pm Post subject: c style preprocessor |
|
|
Hi
I've just downloaded the personal evaluation version of ftn95 and tested it by trying to compile legacy code which has c-style pre-processor statements. It appears that these statements are interpreted corrected for free format source files but not for fixed format source files i.e. the compiler complains that the first column is occupied by a non numeric character. If the c-style ifdef statement is modified to start at column 7, then it is interpreted correctly. However, if gcc is then used to pre-process source when the statement begins at column 7, the statement is ignored.
Based on this, I think the c-style pre-processor ifdef statement may be implemented incorrectly for fixed format source i.e. the compiler should not complain about the first column being a non numeric character when this character is meant for the pre-processor.
The current work around is to use gcc under cygwin with the -E -P flags to pre-process all the source before invoking the ftn95 compiler.
Best regards |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Wed Apr 23, 2008 2:07 pm Post subject: |
|
|
I think that we could peobably do this quite easily but not in time for the next release. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Fri May 02, 2008 2:02 pm Post subject: |
|
|
C-style preprocessing directives can now appear in the fixed format label field except for #include which must start in column 7 or after.
This change will not be included in version 5.21 - the next release. |
|
Back to top |
|
|
|