[Rcpp-devel] RcppArmadillo trying to compile rcpparma_hello_world.cpp
Dirk Eddelbuettel
edd at debian.org
Sun Mar 31 16:39:41 CEST 2013
Andre,
Not reproducible, and you didn't tell us
- what OS and version
- what compiler and version
- what Rcpp version
- what RcppArmadillo version
etc pp. Try to redo the following at your end:
R> setwd("/tmp")
R> library(RcppArmadillo)
R> RcppArmadillo.package.skeleton("testpackage")
Creating directories ...
Creating DESCRIPTION ...
Creating NAMESPACE ...
Creating Read-and-delete-me ...
Saving functions and data ...
Making help files ...
Done.
Further steps are described in './testpackage/Read-and-delete-me'.
Adding RcppArmadillo settings
>> added Depends: Rcpp, RcppArmadillo
>> added LinkingTo: Rcpp, RcppArmadillo
>> added useDynLib directive to NAMESPACE
>> added Makevars file with Rcpp settings
>> added Makevars.win file with RcppArmadillo settings
>> added example header file using Rcpp/RcppArmadillo
>> added example src file using armadillo classes
>> added example R file calling the C++ example
R> system("R CMD INSTALL testpackage")
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘testpackage’ ...
** libs
ccache g++-4.7 -I/usr/share/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppArmadillo/include" -fpic -g0 -O3 -Wall -pipe -Wno-variadic-macros -pedantic -c rcpparma_hello_world.cpp -o rcpparma_hello_world.o
g++-4.7 -shared -o testpackage.so rcpparma_hello_world.o -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/testpackage/libs
** R
** preparing package for lazy loading
** help
Warning: /tmp/testpackage/man/testpackage-package.Rd:32: All text must be in a section
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (testpackage)
R>
followed later by
R> system("R CMD REMOVE testpackage")
Removing from library ‘/usr/local/lib/R/site-library’
R>
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list