<div dir="ltr">Hi, all <div>I am new to Rcpp and might need some of your help, thanks a lot.<div>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:</div>
</div><div><br></div><div><div><i style="background-color:rgb(255,255,0)">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"</i></div>
<div><i style="background-color:rgb(255,255,0)">In file included from D:/R/R-3.1.0/include/R_ext/RS.h:26:0,</i></div><div><i style="background-color:rgb(255,255,0)">                 from D:/R/R-3.1.0/include/R.h:50,</i></div>
<div><i style="background-color:rgb(255,255,0)">                 from D:/R/R-3.1.0/library/Rcpp/include/RcppCommon.h:36,</i></div><div><i style="background-color:rgb(255,255,0)">                 from D:/R/R-3.1.0/library/Rcpp/include/Rcpp.h:27,</i></div>
<div><i style="background-color:rgb(255,255,0)">                 from ../src/rcpp_hello_world.cpp:2:</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:52:17: error: 'internal' does not name a type</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:53:17: error: 'internal' does not name a type</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:66:21: error: expected ')' before 'charsxp'</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:71:23: error: 'StringProxy' does not name a type</i></div><div><i style="background-color:rgb(255,255,0)">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]</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:75:23: error: 'const_StringProxy' does not name a type</i></div><div><i style="background-color:rgb(255,255,0)">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]</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:75:9: error: 'Rcpp::String::String(const int&)' cannot be overloaded</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:71:9: error: with 'Rcpp::String::String(const int&)'</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:103:23: error: expected ')' before 'x'</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:108:35: error: declaration of 'operator=' as non-function</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:108:32: error: expected ';' at end of member declaration</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:108:41: error: expected ')' before 'x'</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:111:35: error: declaration of 'operator=' as non-function</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:111:32: error: expected ';' at end of member declaration</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:111:40: error: expected ')' before 'x'</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:112:41: error: 'StringProxy' does not name a type</i></div>
<div><i style="background-color:rgb(255,255,0)">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]</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:170:42: error: 'StringProxy' does not name a type</i></div>
<div><i style="background-color:rgb(255,255,0)">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]</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:178:36: error: declaration of 'operator+=' as non-function</i></div>
<div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:178:32: error: expected ';' at end of member declaration</i></div><div><i style="background-color:rgb(255,255,0)">D:/R/R-3.1.0/library/Rcpp/include/Rcpp/string.h:178:41: error: expected ')' before 'x'</i></div>
</div><div><br></div><div>Can someone please help? Great thanks.</div><div><br></div><div>Best regards,</div><div>Wen</div></div>