From hin-tak.leung at cimr.cam.ac.uk  Fri Jun 15 00:27:44 2007
From: hin-tak.leung at cimr.cam.ac.uk (Hin-Tak Leung)
Date: Thu, 14 Jun 2007 23:27:44 +0100
Subject: [Rd] LAPACK Headers
In-Reply-To: <20070614214558.GA20567@bjl>
References: <20070614214558.GA20567@bjl>
Message-ID: <4671C0E0.7010200@cimr.cam.ac.uk>

Try this? (this is on 2.5.0, I don't use 2.4.x anymore)

#include <R_ext/Lapack.h>

Have you actually tried grep dgesv $R_HOME/include/* $R_HOME/include/*/*
to see which file to include for dgesv ??

HTL

statmobile at gmail.com wrote:
> Hey Everyone,
> 
> I'm running R 2.4.0 on Debian etch 4.0, and I'm trying to call some
> LAPACK functions from the C code in my package.  Actually, to be
> honest I'm not really having trouble using commands such as La_dgesv
> from within my C code, but I do get warning when compiling the package
> saying:
> 
> ***.c: In function '***':
> ***.c:37: warning: implicit declaration of function 'La_dgesv'
> ***.c:37: warning: assignment makes pointer from integer without
> a cast
> 
> I tried using:
> 
> #include <Rmodules/Rlapack.h>
> 
> but it won't compile the package at all with that included,
> complaining that
> 
> ***.h:5:30: error: Rmodules/Rlapack.h: No such file or directory
> 
> Can someone explain to me how I should include the headers to this
> AWESOME wrapper code to the LAPACK libraries?  Am I not following the
> proper protocol by using these La_* commands in my package source
> code?
> 
> Note, I also have the following in Makevars
> 
> PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
> 
> TIA!
> 
> I initially posted this question on the general list, but I didn't get
> any responses.
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] LAPACK Headers
Hin-Tak Leung