[Rcpp-devel] Building/linking trouble with cxxfunction()

Ken.Williams at thomsonreuters.com Ken.Williams at thomsonreuters.com
Thu Feb 17 00:05:14 CET 2011

On 2/16/11 4:53 PM, "Dirk Eddelbuettel" <edd at debian.org> wrote:

>On 16 February 2011 at 16:20, Ken.Williams at thomsonreuters.com wrote:
>| On 2/16/11 4:00 PM, "Dirk Eddelbuettel" <edd at debian.org> wrote:
>| >Here is an updated version of the 'secondExample' from that
>| >example file in Rcpp.  It uses the plugin generator facility to
>| >LIBS which makes it work on my box.
>| Aha, I hadn't suspected that plugins would be the secret to using
>| libraries. 
>No, as I tried to explain in great length. The minimal example should
>    $ export PKG_CXXFLAGS="...some header location..."
>    $ export PKG_LIBS="...some libs..."
>    $ R CMD SHLIB foo.cpp
>and inline / cxxfunction can be of help if you know these values.

Well, I figured (because of section 2.4 in the Rcpp-FAQ) that I'd be
frowned upon if I tried to do that.  Having already committed so many
frownable offenses I wasn't eager to add another one.

Thanks for the help.

Ken Williams
Senior Research Scientist
Thomson Reuters
Phone: 651-848-7712
ken.williams at thomsonreuters.com

More information about the Rcpp-devel mailing list