I have written a .cpp file and I want to compile it to a .dll for use with R and RCPP. (without using the inline package).
I am using WinXP and R 2.13.2 and RCPP 0.9.7. I am using Rtools 2.14.
How do I include Rcpp.h in minGW's search path? I underastand that the files that I need to include are in C:Program FilesRR-2.13.2libraryRcppinclude. However, I was not able to add the to "add" them to "search path".
I tired a temporary "hack". I copied the contents of C:Program FilesRR-2.13.2libraryRcppinclude into minGW's include directory. The compiling/linking process gets from myfile.cpp to myfile.o but throws a bunch of errors before it can compile myfile.dll.
I have added C:Program FilesRR-2.13.2ini386 to my PATH and I am calling R CMB SHLIB myfile.cpp from the WinXP command prompt.
What should I be doing?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…