- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a Win32 program using Compiling with Intel(R) Visual Fortran Compiler 16.0 [Intel(R) 64]...
in a MSVS 2013. I just updated my compiler to Rel 2
In progGlobals MSVS 2013 defined:
Integer, parameter, public :: ID_RESTART = 30004
In prog I use:
case (WM_COMMAND)
select case ( IAND(wParam, 16#ffff ) )
case (ID_RESTART) ! <== Line 374
Compiling I get:
... Prog.f90(374): error #6601: In a CASE statement, the case-value must be a constant expression. [ID_RESTART]
I get 5 other errors that are just like this one. These are new to Rel 2.
Brooks V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is that due to a mismatch of type (wparam integer(8) and ID_RESTART integer(4)?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is that due to a mismatch of type (wparam integer(8) and ID_RESTART integer(4)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, just tried it with ID_RESTART as an Integer(8)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The compiler is barfing at ID_RESTART not being a constant integer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the compiler got itself lost. By fixing some other errors, that one went away. I'm back debugging. Thanks much for the suggestion. I was lost and almost abandoned my programming for a while.
Brooks V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
More likely there was an error in the .fd file from your resource file that didn't declare the value. IMPLICIT NONE helps.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page