[Rcpp-devel] cxxfunction -- extra argument to g++

Whit Armstrong armstrong.whit at gmail.com
Tue Jan 24 22:27:26 CET 2012


yes, unless I add

#include <armadillo>

Then it blows up.

The problem is in my real function I include a header, which includes armadillo.

So, unless I go deleting all the refs to #include <armadillo>, I think
it will continue to blow up...  (with the current released version).

Anyway, I'll just wait for the next release.

Thanks,
Whit


On Tue, Jan 24, 2012 at 4:23 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> Slow down. You are rushing things a little:
>
> a) we _do_ want the Arma plugin, it does more than just one setting
>
> b) once we have it, Arma works fine:
>
> require(inline)
> cppbugs.plugin <- getPlugin("RcppArmadillo")      ## Arma!!
> cppbugs.plugin$env$PKG_CXXFLAGS <- "-std=c++0x"
> foo.bar <- cxxfunction(signature(hat="numeric"), body='
>   arma::colvec v(2);
>   return Rcpp::wrap(v);
> ', settings=cppbugs.plugin, verbose=TRUE)
>
>
> Dirk
>
> --
> "Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
> dark to read." -- Groucho Marx


More information about the Rcpp-devel mailing list