I'm trying to compile a fortran project with /fpp option on visual studio 2013, and it keeps giving me a warning:
warning #5117: Bad # preprocessor line
And it looks like the code hasn't been passing through to the preprocessor.
The code is as simple as this:
logical*1 FUNCTION IsPreprocesorDefined() IsPreprocesorDefined= .false. #ifdef PRO_PROC_DEFINED IsPreprocesorDefined= .true. #endif return end
The compiler I'm using is Intel(R) Visual Fortran Compiler XE 22.214.171.124 [IA-32]
Can anyone point me to the right direction?Thanks very much
Did you change this option to all your project files... and build platforms?
Are you adding this switch to the "miscellaneous"/additional options...
... or did you check the Preprocess(or) check box in the VS Project properties? (and for all builds)