Error from Force 2.0 G77 but not from G77 Mingw

  • Thread starter Thread starter jelanier
  • Start date Start date
  • Tags Tags
    Error Force
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
jelanier
Messages
67
Reaction score
1
Array `cm' at (^) is too large to handle

I get this error/warning when compiling with the Force 2.0 G77 compiler. However, I do not get this with my MinGw G77. This is the first program I have found that causes this error with Force 2.0, but I would like to fix it.

Any ideas why it would be different?

Jim
 
Physics news on Phys.org
SteamKing said:
It's hard to speculate without more details of your program.

I think you misunderstood my question. The program is fine, it compiles with G77. But NOT with G77 that installs with Force 2.0.

but here is the declaration:
COMPLEX*16 CM

Thanks,

Jim
 
The error message says cm is an array. What are the dimensions of the array?

Yes, I understand that the program compiles with one compiler but not the other. But most of us at PF are not clairvoyant, so we often need something more to go one besides a compiler error message.

It is not clear from reading various documentation for the different g77 compilers and the Fortran 90/95 standard how the compiler treats a type declaration of COMPLEX*16. Some of the documentation suggests that the real and imaginary parts of the variable are converted automatically to single precision.
 
SteamKing said:
The error message says cm is an array. What are the dimensions of the array?

Yes, I understand that the program compiles with one compiler but not the other. But most of us at PF are not clairvoyant, so we often need something more to go one besides a compiler error message.

It is not clear from reading various documentation for the different g77 compilers and the Fortran 90/95 standard how the compiler treats a type declaration of COMPLEX*16. Some of the documentation suggests that the real and imaginary parts of the variable are converted automatically to single precision.

The question is for someone who knows Force 2.0. No clairvoyance required. I am trying to get control of the integrated compiler. There is no command box to see how it implements the compiler.

I did find a solution. You can not simply replace the G77 compiler. Force 2.0 needs f771 to open. The solution is to install Force 2.0 G95 and replace G95.exe with a renamed G77. Then change the compile switch/arguments in the run menu. It runs G77 fine now. I will contact the author and suggest that he add a "select compiler option" to the setup.

Thanks,

Jim