This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error: must operate on two scalar (not array) subexpressions


I know this from experience. I got to port code written in Fortran ages
ago using g77 on linux/pc.


There is no fugly- that will let you compare chars to ints. Even IBM's
xlf does not support it. 

It should not however be hard to write an implicit function that does
it. Will take a char*something and int*same thing and do the magic of
equivalence locally to check if they are equal.





On Tue, 2002-05-14 at 08:13, Andrew Stone wrote:
> Thanks Hassan and Toon,
> 
> Here's some more info:
> G77 Version: g77 version 2.95.2 19991024 (release) (from FSF-g77 version
> 0.5.25 19991024 (release))
> 
> I have tried all the -fugly options to no avail, but from the previous
> comment I found
> the IMPLICIT INTEGER*4 (A-Z) statements.  I was trying not to do too much
> code change,
> but since the -fugly compiler options aren't the solution..I guess the code
> changes will
> have to be done - correct?
> 
> Again, thanks for your help,
> andy
> 
> Andrew Stone
> XML Architect/Developer
> BrightLane, a TeamStaff Inc. Company
> Office: 678-385-2823



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]