Skip to content
Back to formatted view

Raw Message

Message-ID: <5441A736-5C06-43E2-ACA9-7AAE10438257@xs4all.nl>
Date: 2012-03-06T15:00:45Z
From: Berend Hasselman
Subject: Calling FORTRAN function from R issue?
In-Reply-To: <D0D80B8E-E5A8-457E-9399-09EFA3570E79@xs4all.nl>

On 06-03-2012, at 15:46, Berend Hasselman wrote:

> 
>> 
>>> Thus, perhaps strangely, if there is only a
>>> 	external double complex zdotc
>>> declaration in your subroutine, the compiler doesn't know that a call
>> 
>> The only 'strangely' thing is that is accepted: AFAICS is it not valid according to the link above.
>> 
> 
> Agree. The fortran 77 standard doesn't allow that syntax and I'm really surprised that no error is flagged.
> 

Got it.
See http://www.fortran.com/F77_std/rjcnf0001-sh-3.html#sh-3.1.6

Compiler ignores the blanks and

	external double complex zdotc

becomes

	external doublecomplexzdotc	

And that is legal.

And how long have I been using Fortran? I won't tell.

Berend