[Rcpp-devel] g++ version and Rcpp-based package installation.

Dirk Eddelbuettel edd at debian.org
Wed Jul 20 12:18:24 CEST 2011


On 20 July 2011 at 08:43, Cedric Ginestet wrote:
| 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

Yes, g++ 4.1.* is a no go. 

You must have 4.2.$something with $something larger than 0 (and this mattered
once before on OS X).

Dirk
 
| 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
| 
| 
| ----------------------------------------------------------------------
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

-- 
Gauss once played himself in a zero-sum game and won $50.
                      -- #11 at http://www.gaussfacts.com


More information about the Rcpp-devel mailing list