Error from Force 2.0 G77 but not from G77 Mingw

  • Thread starter Thread starter jelanier
  • Start date Start date
  • Tags Tags
    Error Force
Click For Summary

Discussion Overview

The discussion revolves around an error encountered when compiling a Fortran program using the Force 2.0 G77 compiler, which does not occur with the MinGw G77 compiler. Participants explore potential reasons for this discrepancy and seek solutions to the problem.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • Jim reports an error message indicating that the array `cm` is too large to handle when using the Force 2.0 G77 compiler, while it compiles successfully with MinGw G77.
  • Some participants suggest that more details about the program and the dimensions of the array `cm` are necessary to understand the issue better.
  • There is uncertainty regarding how different G77 compilers handle the type declaration of COMPLEX*16, with some documentation indicating potential automatic conversion to single precision for the real and imaginary parts.
  • Jim shares a workaround involving the installation of Force 2.0 G95 and renaming G95.exe to G77, which allows the program to compile successfully.
  • Jim expresses a desire for a "select compiler option" feature in Force 2.0 to improve usability.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the underlying cause of the error, and multiple viewpoints regarding the handling of the COMPLEX*16 type and the compiler's behavior remain. The discussion includes both technical inquiries and proposed solutions without resolving the initial problem.

Contextual Notes

Details about the specific dimensions of the array `cm` and the exact nature of the program are not provided, which may limit the understanding of the error. Additionally, the differences in compiler behavior and documentation interpretations are not fully resolved.

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
 
Technology news on Phys.org
It's hard to speculate without more details of your program.
 
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
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
8K