Re: [Rcpp-devel] Problem with compiling a code for RcppArmadillo

2010-05-19 Thread Romain Francois
Please follow the documentation. See ?RcppArmadillo See also the announcement on my blog: http://romainfrancois.blog.free.fr/index.php?post/2010/05/19/RcppArmadillo-0.2.1 Le 19/05/10 16:18, Abhisek a écrit : Hi, I am trying to use the following lines to compile a cpp code export PKG_LIBS=`R

[Rcpp-devel] Problem with compiling a code for RcppArmadillo

2010-05-19 Thread Abhisek
Hi, I am trying to use the following lines to compile a cpp code export PKG_LIBS=`Rscript -e "Rcpp:::LdFlags()"` export PKG_CXXFLAGS=`Rscript -e "Rcpp:::CxxFlags()"` R CMD SHLIB gamwibTrial.cpp I get the following error g++ -I/usr/share/R/include -I/home/abhisek/R/i486-pc-linux-gnu-library/2.10