[Rprotobuf-yada] Compiling on RHEL 64 bit Linux

Saptarshi Guha saptarshi.guha at gmail.com
Thu Dec 24 18:51:33 CET 2009


Also, I think you're right about the StackLimit being required for embedded R.
I read the documentation and the R_CStackLimit is set while initializing.

On Thu, Dec 24, 2009 at 12:44 PM, Saptarshi Guha
<saptarshi.guha at gmail.com> wrote:
> Hello,
> Yes, that fixed that. However, one slight thing
>
> g++ -I/ln/meraki/custom/lib64/R/include
> -I/ln/meraki/custom/lib64/R/library/Rcpp/lib -pthread
> -I/ln/meraki/custom/include   -I/usr/local/include    -fpic  -g -O2 -c
> DescriptorPoolLookup.cpp -o DescriptorPoolLookup.o
> /ln/meraki/custom/lib64/R/library/Rcpp/lib/Rcpp.h: In member function
> ‘void RcppDatetime::parseTime()’:
> /ln/meraki/custom/lib64/R/library/Rcpp/lib/Rcpp.h:98: warning:
> converting to ‘time_t’ from ‘double’
> /ln/meraki/custom/lib64/R/library/Rcpp/lib/Rcpp.h:99: warning:
> converting to ‘int’ from ‘double’
> DescriptorPoolLookup.cpp: In static member function ‘static SEXPREC*
> rprotobuf::DescriptorPoolLookup::getElements()’:
> DescriptorPoolLookup.cpp:24: error: ‘RcppSexp’ was not declared in this scope
>
>
> Do I have an old version of Rcpp? I checked Rcpp.h and did not find
> RcppSexp, my Rcpp version is 0.6.6
>
> Regards
> Saptarshi
>
>
> On Thu, Dec 24, 2009 at 12:33 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>>
>> On 24 December 2009 at 11:18, Dirk Eddelbuettel wrote:
>> | I just verified that it also breaks for me :-/
>> |
>> | g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/lib -pthread -fpic  -g -O3 -Wall -pipe -c as.cpp -o as.o
>> | as.cpp:4: error: ‘external_pointer’ is not a template
>> | as.cpp:4: error: explicit instantiation of non-template type ‘rcpp::external_pointer’
>> | make: *** [as.o] Error 1
>> | ERROR: compilation failed for package ‘RProtoBuf’
>> | * removing ‘/usr/local/lib/R/site-library/RProtoBuf’
>> | * restoring previous ‘/usr/local/lib/R/site-library/RProtoBuf’
>> |
>> | So looks like Romain broke that...
>>
>> It looks like a simple oversight that somehow doesn't bite on i386.
>>
>> Just commenting it out at the top of as.cpp -- that does the trick.  The rcpp
>> namespace is never used anywhere. [ Romain and I have one/off discussion
>> about sticking stuff to rcpp or keeping in his brandew RForge package cpp
>> which has fancy STL object inspection / creation from R. For a die-hard Java
>> programmer he has quite the C++ tricks up his sleeve. ]
>>
>> Dirk
>>
>> --
>> Three out of two people have difficulties with fractions.
>>
>


More information about the Rprotobuf-yada mailing list