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

#define and explicit type

bgswri
Beginner
564 Views
Good Afternoon,

I am attempting to compile a program which was forwarded to me on CVF v6.6B. The program contains
several include files with #define statements. During the build, I get errors indicating the parameters from the #define directives need explicit type definitions. In the past, I have understood the #define directive to be a parameter definition which substitutes the value for the symbol in subsequent calls.
I have checked the Use FPP box in the compilier settings, but I can't get the program to compile.

Here is an example of the code - without the include file

Program main
implicit none
#define ISY_MAX 45
character csytst(ISY_MAX)*15
end program main

Any suggestions would be greatly appreciated.

Thank You,

Brian
0 Kudos
1 Reply
james1
Beginner
564 Views
Yes, macro expansion is off by default. You need to add the "/m" option to the /fpp switch to get what you are expecting.

James
0 Kudos
Reply