Re: why doesn't this compile ?



In article <87r7gvpva9.fsf@xxxxxxxxx>, Richard Maine wrote:
> beliavsky@xxxxxxx writes:
>
>> I think the original code at the link Bart provided was different from
>> what is currently there, and the original code was not accepted by the
>> compilers I tried. I think it was...
> [code elided]
>
> Oh. Well that's completely different.
>
></grump mode>
> I can't diagnose problems very well if the code I'm shown isn't
> actually the code with the problem. If I had seen the actual code
> with the problem, I wouldn't have needed to test it - I'd have recognized
> the problem at once.
></end grump mode>

Oops... my mistake... i indeed have overwritten the code because of the
following reasons:

1) g95 with the -std=F option and the F compiler seemed to behave
differently on the code with the module approach. I sent an email to
the g95 people for that, and I've put the test-example with the module
approach in my download directory... thereby overwriting my other
example for comp.lang.fortran :-(

2) It was already late in the evening ;-)

But anyway, I guess the probable answer is that the code without the
module approach probably never compiled... I'll check out the thread
Richard is pointing us to.

Regards,
Bart

--
"Share what you know. Learn what you don't."
.



Relevant Pages

  • Re: why doesnt this compile ?
    ... And it compiles and runs fine with both compilers ... I think the original code at the link Bart provided was different from ... Call f on an array argument ... both for the benefit of current newsgroup ...
    (comp.lang.fortran)
  • Re: code optimization- Removing if .. else conditions in for loops
    ... For most compilers the two are exactly the same. ... Unfortunately the ANSI C standard is basically broken on the right ...
    (comp.lang.c)
  • Re: Help from fellow Fortran Users
    ... > Why learn Fortran? ... most complicated parts from the IDL version almost directly (which works ... I wanted to understand how good compilers are in generating ... The original code is ...
    (comp.lang.fortran)
  • Re: Deriving from std::iterator - types undefined
    ... > I'll have to try your suggestion, but I very much want to understand ... Of course different compilers work ... and some would work with your original code. ... to compile this sort of code on at least two compilers. ...
    (comp.lang.cpp)