Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

fpp parse errors

Sam_E_
Beginner
259 Views

I occasionally get parse errors using fpp. Usually I find a fix (sometimes having to rename symbols) but have been unable to resolve this one. The  code  extract is from a file that successfully parses and compiles but here I get a parse error on every #if line.
 

0 Kudos
1 Reply
Lorri_M_Intel
Employee
259 Views

Take the "=" out of your #defines  For example, you have this:

 

#define _entry_variables               = 0
 

then later you have

#if _entry_variables > 1

By symbol substitution, this becomes:

#if =0 > 1

and that's incorrect syntax.

               --Lorri

0 Kudos
Reply