Skip to content
Back to formatted view

Raw Message

Message-ID: <d8ad40b50906300724x603c81bkbe7d0cd064e28a45@mail.gmail.com>
Date: 2009-06-30T14:24:22Z
From: Barry Rowlingson
Subject: Matrix with random number
In-Reply-To: <237102.1638.qm@web59710.mail.ac4.yahoo.com>

> ???? ??? x(i,j) = call myrbeta(1,4,5) ! It's correct?

> The code of the error in R is:
> dyn.load("func.so")
> Error in dyn.load("func.so") :
> ? unable to load shared library '/home/julio/Orientados/Fabio/Fortran/mat-fortran/func.so':
> ? /home/julio/Orientados/Fabio/Fortran/mat-fortran/func.so: undefined symbol: callmyrbeta_

 Fortran doesn't use 'CALL' when calling a function. Try:

      x(i,j) = myrbeta(1,4,5)

Fortran has SUBROUTINEs (which are CALLed and don't return a value)
and FUNCTIONs - which are just used like any other function.

Barry