<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Rcpp Experts,<br>
<br>
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:<br>
<br>
########################<br>
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<br>
/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]':<br>
/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]'<br>
common.cpp:14: instantiated from here<br>
#########################<br>
<br>
where the function in common.cpp is as follows (line 14 is the line
where the floor function is used):<br>
#########################<br>
IntegerVector disUnif(int n, int a, int b){<br>
IntegerVector vec(n); <br>
vec = floor(runif(n,a,b+1)); <br>
return vec;<br>
}//disUnif<br>
#########################<br>
<br>
Any ideas on what I am missing? <br>
<br>
Thanks for your help,<br>
Cedric<br>
<br>
<div class="moz-signature">-- <br>
<div class="moz-signature"><font face="Times" size="3">
Cedric Ginestet, PhD <br>
Centre for Neuroimaging Sciences (L3.04) <br>
NIHR Biomedical Research Centre <br>
Department of Neuroimaging <br>
Institute of Psychiatry, Box P089 <br>
King's College London <br>
De Crespigny Park<br>
London <br>
SE5 8AF <br>
<a class="moz-txt-link-freetext" href="http://www.kcl.ac.uk/iop/depts/neuroimaging/people/Ginestet,Cedric.aspx">http://www.kcl.ac.uk/iop/depts/neuroimaging/people/Ginestet,Cedric.aspx</a><br>
</font>
</div>
</div>
</body>
</html>