[Rcpp-devel] RInside under Windows
Pascal, I don't think trying to use .a files is going to work on Windows. That is one of the things that I changed was to look for DLLs instead. Dirk, Good point about the Rtools version. I started with 2.13, but I get the same thing with 2.14. Here are the key changes that I made to Makefile.win: RCPPINCL := -IC:/Users/pat/Documents/R/win-library/2.14/Rcpp/include RCPPLIBS := C:/Users/pat/Documents/R/win-library/2.14/Rcpp/libs/i386/Rcpp.dll RINSIDEINCL := -IC:/Users/pat/Documents/R/win-library/2.14/RInside/include RINSIDELIBS := C:/Users/pat/Documents/R/win-library/2.14/RInside/libs/i386/libRInside.dll I then do: make -f Makefile.win I seem to have failed in my attempt to tell it where R lives -- I get a cygwin warning about MS-DOS style path, but I don't think that is really a problem. It then attempts the g++ command, gives the multiple definition statements, and: ld returned 1 exit status I don't suppose there is a way of doing this so that output can be cut-and-pasted. Pat
On 14/02/2012 14:10, pasparis at noos.fr wrote:
Patrick, at the moment I am not able to test on a XP machine due to the following reason: I started yesterday to use RInside on a XP machine (CodeBlocks,GNU GCC compiler) before I used on linux,KDEvelop,GNU GCC,CMake with no problem on the Linux environement there are libR.so, libRCpp.so, libRInside.so for the link but on the windows I find libRcpp.a,libRInside.a but no libR.a just a libR.dll do you have a libR.a? because I get during the link ||=== pR1, Debug ===| obj\Debug\main.o:C:\pR1\Include\Rcpp\internal\wrap.h|348|undefined reference to `Rf_allocVector' ..... ||=== Build finished: 50 errors, 0 warnings ===| pascal ---- Message d'origine ----
>De : "Patrick Burns" <patrick at burns-stat.com> >? : rcpp-devel at r-forge.wu-wien.ac.at >Objet : [Rcpp-devel] RInside under Windows >Date : 14/02/2012 12:08:54 CET > >I'm trying to get the RInside examples to go > under Windows 7. It is proving to be exceptionally > traumatic. > > There are a few glitches that I've got past, but > now I'm getting: > > multiple definition of `_imp__ZTUN4Rcpp14not_compatiblE' > multiple definition of `_nm__ZTUN4Rcpp14not_compatiblE' > > (with some chance of transcription errors) > > This is the same for both 32-bit and 64-bit. > > Suggestions? > > Pat > > -- > Patrick Burns > patrick at burns-stat.com > http://www.burns-stat.com > http://www.portfolioprobe.com/blog > twitter: @portfolioprobe > > _______________________________________________ > Rcpp-devel mailing list > Rcpp-devel at lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel >
Patrick Burns patrick at burns-stat.com http://www.burns-stat.com http://www.portfolioprobe.com/blog twitter: @portfolioprobe