Hi,<br><br>I am trying to use the following lines to compile a cpp code<br><br>export PKG_LIBS=`Rscript -e "Rcpp:::LdFlags()"`<br>export PKG_CXXFLAGS=`Rscript -e "Rcpp:::CxxFlags()"`<br>R CMD SHLIB gamwibTrial.cpp<br>
<br>I get the following error<br><br>g++ -I/usr/share/R/include -I/home/abhisek/R/i486-pc-linux-gnu-library/2.10/Rcpp/include -fpic -g -O2 -c gamwibTrial.cpp -o gamwibTrial.o<br>In file included from gamwibTrial.cpp:2:<br>
/usr/local/include/RcppArmadillo.h:25:34: error: RcppArmadilloForward.h: No such file or directory<br><br>i did a search for RcppArmadilloForward.h but did not find it. I have updated to the latest versions of Rcpp and RcppArmadillo today.<br>
<br>i realize that i should be using RcppArmadillo in a package setting but im still trawling through that documentation. In the meantime I am just trying to see if the code will compile.<br><br>Many thanks for your help!<br>
Abhisek<br>