Now, with fnt95 version 8.60.0 preprocessor macros _SAL_VER and _FTN95_VER are available. I would like to use _FTN95_VER, however, I do not know the value it is defined to.
Following code works and activates the code between #IF and #ELSE:
#IF _FTN95_VER
ctmp='_FTN95_VER defined'
#ELSE
ctmp='_FTN95_VER not defined'
#ENDIF
This may be checked e.g. using sdbg64 or via creating the corresponding *.lis file.
However, I do not know how to activate code which applies only for ftn95 version 8.60.0. I would expect something like
#IF _FTN95_VER == 8.60.0
ctmp='_FTN95_VER defined'
#ELSE
ctmp='_FTN95_VER not defined'
#ENDIF
but when compiling this code (using ftn95 options /64 and /cfpp) the following error messages occur:
#IF _FTN95_VER == 8.60.0
*** Invalid character '' found in expression
1 ERROR [test_graphics_window0.for] - Compilation failed.
. I suspect the right hand side of the #IF statement above expects an integer value. For code sequence
#IF _FTN95_VER == 8
ctmp='_FTN95_VER defined'
#ELSE
ctmp='_FTN95_VER not defined'
#ENDIF
works and activates the code between the #ELSE and the #ENDIF.
Now I wonder which right hand side I would have to specify in order to activate the code bewtween #IF and #ELSE for version 8.60.0 of ftn95 only.
I know I could bypass this problem by defining a preprocessor symbol via ftn95 option /define in the ftn95 call, however, the reason for introducing symbol _FTN95_VER was to avoid this proceeding, wasn't it?
Regards, Dietmar