- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
James
![](/skins/images/71A9511A625CE5D5D45FB59952A4AA71/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page