On 2/16/11 4:53 PM, "Dirk Eddelbuettel" <[email protected]> wrote:
> >On 16 February 2011 at 16:20, [email protected] wrote: >| On 2/16/11 4:00 PM, "Dirk Eddelbuettel" <[email protected]> wrote: >| >Here is an updated version of the 'secondExample' from that >aforementioned >| >example file in Rcpp. It uses the plugin generator facility to >override >| >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 >always >be > > $ 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 [email protected] http://labs.thomsonreuters.com _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
