Hi there, I tried to build a package where I used rcpp and bigmemory.
My .cpp file starts with: // [[Rcpp::depends(bigmemory)]] #include <Rcpp.h> #include <bigmemory/MatrixAccessor.hpp> using namespace Rcpp; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ However, there is an error message: devtools::document()Updating cafs documentationLoading cafsRe-compiling cafs"C:/PROGRA~1/R/R-215~1.3/bin/i386/R" --vanilla CMD INSTALL \ "C:\Documents and Settings\F051133\Desktop\cafs" \ --library="C:\DOCUME~1\F051133\LOCALS~1\Temp\RtmpsBikUM" --no-R \ --no-data --no-help --no-demo --no-inst --no-docs --no-multiarch \ --no-test-load --preclean * installing *source* package 'cafs' ... ** libs g++ -m32 -I"C:/PROGRA~1/R/R-215~1.3/include" -DNDEBUG -I"H:/R/win-library/2.15/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o g++ -m32 -I"C:/PROGRA~1/R/R-215~1.3/include" -DNDEBUG -I"H:/R/win-library/2.15/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c rcpp_hello_world.cpp -o rcpp_hello_world.o g++ -m32 -I"C:/PROGRA~1/R/R-215~1.3/include" -DNDEBUG -I"H:/R/win-library/2.15/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c sbi.cpp -o sbi.o sbi.cpp:3:40: fatal error: bigmemory/MatrixAccessor.hpp: No such file or directory compilation terminated. make: *** [sbi.o] Error 1 ERROR: compilation failed for package 'cafs' * removing 'C:/DOCUME~1/F051133/LOCALS~1/Temp/RtmpsBikUM/cafs'Error: Command failed (1) Does anyone know how to fix it? Thank you. Regards, Aileen L. View my Linkedin profile: http://au.linkedin.com/in/aileen2 Being happy doesn't mean you're perfect. It just means you've decided to look beyond the imperfections- K.B Indiana (age 14)<http://www.boardofwisdom.com/default.asp?topic=1010&search=K%2EB+Indiana+%28age+14%29>
_______________________________________________ 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