From wdunlap at tibco.com  Wed Mar 25 19:00:18 2015
From: wdunlap at tibco.com (William Dunlap)
Date: Wed, 25 Mar 2015 11:00:18 -0700
Subject: [Rd] F77_CALL/NAME problem
In-Reply-To: <1427301360411-4705096.post@n4.nabble.com>
References: <1427276694207-4705076.post@n4.nabble.com>
	<1427301360411-4705096.post@n4.nabble.com>
Message-ID: <CAF8bMcZ4_QgYqMnLnOxi8V4AxHexNud5pT84ju6NYxPL6KrAng@mail.gmail.com>

You said you changed F77_NAME(DGESV) to dgesv_ to make it
work and inferred that F77_NAME was the the problem.

I suspect that things got better because you changed the capitalization
and that F77_NAME(dgesv) would have worked as well.

Adding
   #include <R_ext/Lapack.h>
to your code would declare these things as well (and declare them
properly, with the 'const' declarations in the appropriate places).



Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Wed, Mar 25, 2015 at 9:36 AM, bstr <nicola.lunardon at hotmail.it> wrote:

> I was not able to find why my old way to do things did not work. However, I
> "discovered" that dgesv is also in the header Lapack.h. So I just dropped
> form the C code the declarations F77_NAME/CALL and used directly function
> dgesv_ as declared in Lapack.h. Of course I had to compile with the
> -llapack
> flag.
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/F77-CALL-NAME-problem-tp4705076p4705096.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]



[Rd] F77_CALL/NAME problem
William Dunlap