From edd at debian.org  Tue Mar 12 19:14:15 2013
From: edd at debian.org (Dirk Eddelbuettel)
Date: Tue, 12 Mar 2013 13:14:15 -0500
Subject: [Rd] compiling C code using headers from another R package
In-Reply-To: <513F6D72.3040304@fhcrc.org>
References: <513E4A98.9080503@cs.ucr.edu>
	<B54A5D4C-2578-4739-BEB5-6B17FA6A9856@r-project.org>
	<513F582B.9090601@cs.ucr.edu>
	<E43810D3-2AEC-4F07-B61A-03923D6D2FC3@r-project.org>
	<513F6D72.3040304@fhcrc.org>
Message-ID: <20799.28791.574452.229966@max.nulle.part>


On 12 March 2013 at 11:01, Herv? Pag?s wrote:
| Anyway, to answer Kevin's original question:
| 
|    how do I know where the GSL library and header files, packaged
|    in GSLR, would live so I can point the compiler at them?
| 
| Use the LinkingTo field.

Nope. Only covers the case of include files [1]

Dirk

[1] Unless you also register every single C function which is clearly
impractical with a library as large as the GSL. See '5.4 Registering native
routines' and '5.8 Linking to other packages' in the usual "Writing R
Extensions" manual.

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  



[Rd] compiling C code using headers from another R package
Dirk Eddelbuettel