On 21 February 2012 at 11:59, Dirk Eddelbuettel wrote: | David, I just looked into openair_0.5-18 but that version does not use Rcpp. | Can you let me have a look at your current code snapshot? | | Another good trick in almost all cases involving Windows is to submit to | http://win-builder.r-project.org which built the most recent RcppArmadillo | just fine. We would have heard from CRAN if Rcpp has broken other packages.
For what it is worth, a package of mine just built fine on win-builder in for both r-devel and r-release. I use this as src/Makevars.win The link line of the build log is g++ -shared -s -static-libgcc -o RcppSMC.dll tmp.def history.o pf.o pffuncs.o rareEvents.o rng.o simfunctions.o smc-exception.o -Ld:/Rcompile/CRANpkg/extralibs/local/lib/i386 -Ld:/Rcompile/CRANpkg/extralibs/local/lib d:/RCompile/CRANpkg/lib/2.14/Rcpp/lib/i386/libRcpp.a -LD:/RCompile/recent/R-2.14.1/bin/i386 -lR and it helps to break this down line by line g++ -shared -s -static-libgcc -o RcppSMC.dll tmp.def history.o pf.o pffuncs.o rareEvents.o rng.o simfunctions.o smc-exception.o -Ld:/Rcompile/CRANpkg/extralibs/local/lib/i386 -Ld:/Rcompile/CRANpkg/extralibs/local/lib d:/RCompile/CRANpkg/lib/2.14/Rcpp/lib/i386/libRcpp.a -LD:/RCompile/recent/R-2.14.1/bin/i386 -lR whereas David had a spurious space in there: g++ -shared -s -static-libgcc -o openair.dll tmp.def cluster.o rolling.o -Ld:/ RCompile/CRANpkg/extra libs/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs/ local/lib C:/ProgramFiles/R-2.14.1/library/Rcpp/ lib/i386/libRcpp.a -LC:/ ProgramFiles/R-2.14.1/bin/i386 -lRlapack -LC:/ProgramFiles/R-2.14.1/bin/i386 -lRblas -lgfortran -LC:/ProgramFiles/R-2.14.1/bin/i386 -lR g++ -shared -s -static-libgcc -o openair.dll tmp.def cluster.o rolling.o -Ld:/RCompile/CRANpkg/extra libs/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs/local/lib C:/ProgramFiles/R-2.14.1/library/Rcpp/ lib/i386/libRcpp.a <-- that space looks odd -LC:/ProgramFiles/R-2.14.1/bin/i386 -lRlapack -LC:/ProgramFiles/R-2.14.1/bin/i386 -lRblas -lgfortran -LC:/ProgramFiles/R-2.14.1/bin/i386 -lR Could of course been bad email formatting... Dirk -- "Outside of a dog, a book is a man's best friend. Inside of a dog, it is too dark to read." -- Groucho Marx _______________________________________________ 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