Error from Force 2.0 G77 but not from G77 Mingw

  • Thread starter Thread starter jelanier
  • Start date Start date
  • Tags Tags
    Error Force
AI Thread Summary
The discussion centers around an error encountered when compiling a program with the Force 2.0 G77 compiler, which states that the array `cm` is too large to handle. The user notes that the same program compiles successfully with MinGw G77, indicating a discrepancy between the two compilers. The conversation highlights the need for more details about the program, particularly the dimensions of the array `cm`, to understand the issue better. There is confusion regarding how the Force 2.0 G77 compiler handles the COMPLEX*16 type declaration, with some documentation suggesting automatic conversion to single precision. Ultimately, a solution is found: replacing the G77 compiler with G95 and adjusting the compile settings allows the program to run successfully. The user plans to suggest a "select compiler option" feature to the author of the Force 2.0 software for improved usability.
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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
5
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
6
Views
4K
Replies
3
Views
5K
Replies
2
Views
3K
Replies
3
Views
4K
Replies
6
Views
8K
Back
Top