[Rcpp-devel] Compiling issue about Rcpp

Wen YOU youwen1991 at gmail.com
Fri Apr 18 03:22:28 CEST 2014


Hi, all
I am new to Rcpp and might need some of your help, thanks a lot.
I was trying to compile my Rcpp program in eclipse. But I met a lot of
errors when I was trying to do so. Most of the error comes from the
String.h. Here is the command and part of error:

*g++ -DINSIDE -ID:/R/R-3.1.0/include -ID:/R/R-3.1.0/library/RInside/include
-ID:/R/R-3.1.0/library/Rcpp/include
-ID:/R/R-3.1.0/library/Rcpp/include/Rcpp -O0 -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF"src/rcpp_hello_world.d"
-MT"src/rcpp_hello_world.d" -o "src/rcpp_hello_world.o"
"../src/rcpp_hello_world.cpp"*
*In file included from D:/R/R-3.1.0/include/R_ext/RS.h:26:0,*
*                 from D:/R/R-3.1.0/include/R.h:50,*
*                 from D:/R/R-3.1.0/library/Rcpp/include/RcppCommon.h:36,*
*                 from D:/R/R-3.1.0/library/Rcpp/include/Rcpp.h:27,*
*                 from ../src/rcpp_hello_world.cpp:2:*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:52:17: error: 'internal'
does not name a type*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:53:17: error: 'internal'
does not name a type*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:66:21: error: expected ')'
before 'charsxp'*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:71:23: error:
'StringProxy' does not name a type*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:71:36: error: ISO C++
forbids declaration of 'proxy' with no type [-fpermissive]*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:75:23: error:
'const_StringProxy' does not name a type*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:75:42: error: ISO C++
forbids declaration of 'proxy' with no type [-fpermissive]*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:75:9: error:
'Rcpp::String::String(const int&)' cannot be overloaded*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:71:9: error: with
'Rcpp::String::String(const int&)'*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:103:23: error: expected
')' before 'x'*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:108:35: error: declaration
of 'operator=' as non-function*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:108:32: error: expected
';' at end of member declaration*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:108:41: error: expected
')' before 'x'*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:111:35: error: declaration
of 'operator=' as non-function*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:111:32: error: expected
';' at end of member declaration*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:111:40: error: expected
')' before 'x'*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:112:41: error:
'StringProxy' does not name a type*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:112:54: error: ISO C++
forbids declaration of 'proxy' with no type [-fpermissive]*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:170:42: error:
'StringProxy' does not name a type*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:170:55: error: ISO C++
forbids declaration of 'proxy' with no type [-fpermissive]*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:178:36: error: declaration
of 'operator+=' as non-function*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:178:32: error: expected
';' at end of member declaration*
*D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:178:41: error: expected
')' before 'x'*

Can someone please help? Great thanks.

Best regards,
Wen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140418/b9bb054b/attachment.html>


More information about the Rcpp-devel mailing list