i thought i would repost here as it is a similar problem:<br><br>i updated Rcpp and then RcppArmadillo and when i run : export PKG_CXXFLAGS=`Rscript -e "RcppArmadillo:::CxxFlags()"`<br><br>i get the following error<br>
<br>abhisek@shieks:~/Desktop/Personal/Test$ export PKG_CXXFLAGS=`Rscript -e "RcppArmadillo:::CxxFlags()"`<br>Error in dyn.load(file, DLLpath = DLLpath, ...) : <br> unable to load shared library '/home/abhisek/R/i486-pc-linux-gnu-library/2.10/RcppArmadillo/libs/RcppArmadillo.so':<br>
/home/abhisek/R/i486-pc-linux-gnu-library/2.10/RcppArmadillo/libs/RcppArmadillo.so: undefined symbol: _ZN4arma12arma_version5majorE<br>Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous><br>
Execution halted<br><br>i tried recompiling RcppArmadillo, as well as uninstalling and reinstalling RcppArmadillo from install.packages() to no avail.<br><br>could someone assist?<br><br>many thanks!<br>abhisek<br><br><br>
<div class="gmail_quote">On Wed, Apr 14, 2010 at 6:51 PM, Davor Cubranic <span dir="ltr"><<a href="mailto:davor.cubranic@alumni.cs.ubc.ca" target="_blank">davor.cubranic@alumni.cs.ubc.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On April 13, 2010 04:28:31 am Abhisek wrote:<br>
> sorry to raise this again after a hiatus. I updated to the latest<br>
> Rcpp (0.7.11) and when I tried the following commands:<br>
</div>[...]<br>
<div>> /home/abhisek/R/i486-pc-linux-gnu-library/2.10/RcppArmadillo/libs/Rcp<br>
</div><div>> pArmadillo.so: undefined symbol:<br>
> _ZN4Rcpp4growINS_5NamedEEEP7SEXPRECRKT_S3_ Calls: ::: ... tryCatch<br>
> -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted<br>
<br>
</div>I ran into a similar error today after I upgraded my version of Rcpp<br>
from 0.7.10 (or maybe 0.7.10.1) to 0.7.11:<br>
/opt/R-2.10.1/lib/R/library/RcppArmadillo/libs/RcppArmadillo.so:<br>
undefined symbol:<br>
_ZN4Rcpp8internal12set_list_eltINS_5NamedEEEbP7SEXPRECS4_iRKT_<br>
<br>
In my case, uninstalling RcppArmadillo and then installing it again fixed<br>
the error.<br>
<br>
Maybe a new package version scheme is necessary to make it easier to<br>
keep RcppArmadillo and Rcpp in sync? Would bumping up version numbers<br>
more when there is a breaking API change help? For instance, when Named<br>
was eliminated between 0.7.10 and 0.7.11, the new version could have<br>
been called 0.8. RcppArmadillo packages would then depend on the Rccp<br>
version being less than the next major API change.<br>
<font color="#888888"><br>
Davor<br>
</font></blockquote></div><br>