[Rcpp-devel] g++ version and Rcpp-based package installation.
Cedric Ginestet
c.ginestet05 at googlemail.com
Wed Jul 20 09:43:14 CEST 2011
Hi again,
Could this be due to the fact that the versions of R and C++ on the
server where I wish to install the R package are slightly outdated? On
the target server, they are as follows:
R 2.12.0
g++ 4.1.2
whereas on the machine where a successful installation of the same
package is running, I have
R 2.12.2
g++ 4.5.2
Thank you very much,
Cedric
On 19/07/11 16:21, Cedric Ginestet wrote:
> 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:
After R CMD INSTALL package
> ########################
> 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/20110720/7160fced/attachment.htm>
More information about the Rcpp-devel
mailing list