- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the following code in an include block:
#if defined (VECSIZE)
#define tnvec VECSIZE
#else
#define tnvec 64
#endif
integer nvec
parameter (nvec=tnvec)
I get erro 6404: This symbol must be a defined parameter, an enumerator, or an argument of an inquiry function that evaluates to a compile-time constant.
tnvec should be a compile-time constant since VECSIZE is defined. Can anyone tell me how to fix this? I want VECSIZE to depend on the machine as defined by the user at compile time.
Thanks!
#if defined (VECSIZE)
#define tnvec VECSIZE
#else
#define tnvec 64
#endif
integer nvec
parameter (nvec=tnvec)
I get erro 6404: This symbol must be a defined parameter, an enumerator, or an argument of an inquiry function that evaluates to a compile-time constant.
tnvec should be a compile-time constant since VECSIZE is defined. Can anyone tell me how to fix this? I want VECSIZE to depend on the machine as defined by the user at compile time.
Thanks!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you name the source file .F or .F90 (with a capital F) or add -fpp to the compile line? If not, the # lines will be ignored.
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