[Rcpp-devel] Compiling issue about Rcpp
Dirk Eddelbuettel
edd at debian.org
Fri Apr 18 03:36:35 CEST 2014
Wen,
On 18 April 2014 at 09:22, Wen YOU wrote:
| 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
[...]
| Can someone please help? Great thanks.
You have not shown a reproducible error in Rcpp. What you have shown is that
you failed to build something using Eclipse. Which may be well a setup error
on your part.
We support an R package which is fairly rigorously tested and which supports
'R CMD INSTALL .....' for various values of '.....' (and various different
incantations, including RStudio which tries hard (and successfully) to behave
just like R by invoking R as R).
For everything else, you are mostly on your own. Windows is twice as hard
because of its inconsistent $PATH etc.
I would try to build something simple first, either directly with R or via
RStudio, so that you know that the code works, and then migrate a known
working setup to your chosen environment.
Good luck, Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list