Hi, I am trying to compile the RcppArmadillo example
R CMD SHLIB rcpparma_hello_world.cpp ... The following message is returned. \RcppArmadillo_0.3.800.1\skeleton>R CMD SHLIB rcpparma_hello_world.cpp M:\YDrive\All_Economics\eclipse_workspace\RcppArmadillo_0.3.800.1\skeleton>R CMD SHLIB rcpparma_hello_world.cpp g++ -m32 -I"F:/ProgramFiles/R/R-2.15.3/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -IF:/ProgramFiles/R/R-2.15.3/include -IF:/ProgramFiles/R/R-2.15.3/include/i386 -IF:/ProgramFiles/R/R-2.15.3/library/Rcpp/include -IM:/YDrive/Al l_Economics/eclipse_workspace/RcppArmadillo_0.3.800.1/include -O2 -Wall -mtune=core2 -c rcpparma_hello_world.cpp -o rcpparma_hello_world.o In file included from rcpparma_hello_world.cpp:1:0: rcpparma_hello_world.h:1:10: warning: extra tokens at end of #ifndef directive [enabled by default] rcpparma_hello_world.h:2:10: warning: missing whitespace after the macro name [enabled by default] In file included from F:/ProgramFiles/R/R-2.15.3/library/Rcpp/include/RcppCommon.h:102:0, from MYLONGPATH/RcppArmadillo_0.3.800.1/include/RcppArmadilloForward.h:25, from MYLONGPATH/RcppArmadillo_0.3.800.1/include/RcppArmadillo.h:29, from rcpparma_hello_world.h:4, from rcpparma_hello_world.cpp:1: F:/ProgramFiles/R/R-2.15.3/library/Rcpp/include/Rcpp/Named.h:64:1: error: stray '@' in program F:/ProgramFiles/R/R-2.15.3/library/Rcpp/include/Rcpp/Named.h:64:1: error: stray '@' in program In file included from F:/ProgramFiles/R/R-2.15.3/library/Rcpp/include/RcppCommon.h:102:0, from MYLONGPATH/RcppArmadillo_0.3.800.1/include/RcppArmadilloForward.h:25, from MYLONGPATH/RcppArmadillo_0.3.800.1/include/RcppArmadillo.h:29, from rcpparma_hello_world.h:4, from rcpparma_hello_world.cpp:1: F:/ProgramFiles/R/R-2.15.3/library/Rcpp/include/Rcpp/Named.h:64:35: error: expected initializer before '_RCPP_HELLO_WORLD_H' make: *** [rcpparma_hello_world.o] Error 1 Please help Thank you, Andre Mikulec andre_miku...@hotmail.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel