[Rcpp-devel] Rcpp-based package installation.

Cedric Ginestet c.ginestet05 at googlemail.com
Tue Jul 19 17:21:55 CEST 2011


Hi Rcpp Experts,

I have tried to install an Rcpp-based package onto a Linux server. While 
the package compiles and install fine on my machine, I don't seem to be 
able to install it on that server:

########################
g++ -I/share/apps/R_2.12.0/lib64/R/include  -I/usr/local/include 
-I"/home/cginestetbrc/R/x86_64-unknown-linux-gnu-library/2.12//Rcpp/include"   
-fpic  -g -O2 -c common.cpp -o common.o
/home/cginestetbrc/R/x86_64-unknown-linux-gnu-library/2.12//Rcpp/include/Rcpp/vector/Vector.h: 
In member function 'void Rcpp::Vector<RTYPE>::assign_object(const T&, 
Rcpp::traits::true_type) [with T = Rcpp::sugar::Vectorized<floor, true, 
Rcpp::Vector<14> >, int RTYPE = 13]':
/home/cginestetbrc/R/x86_64-unknown-linux-gnu-library/2.12//Rcpp/include/Rcpp/vector/Vector.h:68:   
instantiated from 'Rcpp::Vector<RTYPE>& 
Rcpp::Vector<RTYPE>::operator=(const T&) [with T = 
Rcpp::sugar::Vectorized<floor, true, Rcpp::Vector<14> >, int RTYPE = 13]'
common.cpp:14:   instantiated from here
#########################

where the function in common.cpp is as follows (line 14 is the line 
where the floor function is used):
#########################
IntegerVector disUnif(int n, int a, int b){
     IntegerVector vec(n);
     vec = floor(runif(n,a,b+1));
return vec;
}//disUnif
#########################

Any ideas on what I am missing?

Thanks for your help,
Cedric

-- 
Cedric Ginestet, PhD
Centre for Neuroimaging Sciences (L3.04)
NIHR Biomedical Research Centre
Department of Neuroimaging
Institute of Psychiatry, Box P089
King's College London
De Crespigny Park
London
SE5 8AF
http://www.kcl.ac.uk/iop/depts/neuroimaging/people/Ginestet,Cedric.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110719/4c4ef59e/attachment.htm>


More information about the Rcpp-devel mailing list