From michele.salvadore at gmail.com Wed Sep 24 11:29:40 2014 From: michele.salvadore at gmail.com (Michele Salvadore) Date: Wed, 24 Sep 2014 11:29:40 +0200 Subject: [Rquantlib-devel] Building rquantlib on windows Message-ID: Hi, I am trying to build rquantib on windows as I need to add/improve some features related to fixed income pricing. This is my e4nvironment configuration: BOOSTLIB="C:/workspace/lib/boost/boost_1_56_0" QUANTLIB_ROOT="C:/workspace/lib/QuantLib/QuantLib-1.4" > sessionInfo() R version 3.1.1 (2014-07-10) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.1.1 When I "Build & Reload" (from RStudio) I get the following: ==> Rcmd.exe INSTALL --no-multiarch --with-keep.source rquantlib * installing to library 'C:/Program Files/R/R-3.1.1/library' * installing *source* package 'RQuantLib' ... ********************************************** WARNING: this package has a configure script It probably needs manual configuration ********************************************** ** libs g++ -m64 -I"C:/PROGRA~1/R/R-31~1.1/include" -DNDEBUG -I"C:/Program Files/R/R-3.1.1/library/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -I"C:/workspace/lib/QuantLib/QuantLib-1.4" -I../inst/include -I. -I"C:/workspace/lib/boost/boost_1_56_0" -O2 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/models/model.hpp:30:0, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/pricingengines/latticeshortratemodelengine.hpp:28, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/callablebonds/treecallablebondengine.hpp:28, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/callablebonds/all.hpp:9, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/all.hpp:6, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/quantlib.hpp:42, from ../inst/include/rquantlib_internal.h:24, from ../inst/include/RQuantLib.h:23, from RcppExports.cpp:4: C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/lattices/lattice.hpp:169:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/operatortraits.hpp:27:0, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/utilities/fdmboundaryconditionset.hpp:27, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/solvers/fdmbackwardsolver.hpp:28, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/finitedifferences/fdextoujumpvanillaengine.hpp:30, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/finitedifferences/all.hpp:5, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/all.hpp:15, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/quantlib.hpp:42, from ../inst/include/rquantlib_internal.h:24, from ../inst/include/RQuantLib.h:23, from RcppExports.cpp:4: C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/stepcondition.hpp:48:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/fdtypedefs.hpp:28:0, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/americancondition.hpp:28, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/all.hpp:4, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/all.hpp:4, from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/quantlib.hpp:47, from ../inst/include/rquantlib_internal.h:24, from ../inst/include/RQuantLib.h:23, from RcppExports.cpp:4: C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/parallelevolver.hpp:51:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/parallelevolver.hpp:102:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] In file included from C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:25:0, from C:/Program Files/R/R-3.1.1/library/Rcpp/include/RcppCommon.h:169, from ../inst/include/rquantlib_internal.h:30, from ../inst/include/RQuantLib.h:23, from RcppExports.cpp:4: C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h: In constructor 'Rcpp::traits::Exporter::Exporter(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]': C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:79:51: instantiated from 'T Rcpp::internal::as(SEXP, Rcpp::traits::r_type_generic_tag) [with T = long long unsigned int, SEXP = SEXPREC*]' C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:144:84: instantiated from 'T Rcpp::as(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]' C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/InputParameter.h:34:45: instantiated from 'Rcpp::InputParameter::operator T() [with T = long long unsigned int]' RcppExports.cpp:29:161: instantiated from here C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h:31:31: error: invalid conversion from 'SEXP' to 'long long unsigned int' [-fpermissive] make: *** [RcppExports.o] Error 1 Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-31~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="RQuantLib.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o asian.o barrier_binary.o bermudan.o bonds.o calendars.o curves.o dates.o daycounter.o discount.o hullwhite.o implieds.o modules.o utils.o vanilla.o zero.o"' had status 2 ERROR: compilation failed for package 'RQuantLib' * removing 'C:/Program Files/R/R-3.1.1/library/RQuantLib' * restoring previous 'C:/Program Files/R/R-3.1.1/library/RQuantLib' Exited with status 1. Any idea how to fix this? Thanks, Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From edd at debian.org Wed Sep 24 14:04:14 2014 From: edd at debian.org (Dirk Eddelbuettel) Date: Wed, 24 Sep 2014 07:04:14 -0500 Subject: [Rquantlib-devel] Building rquantlib on windows In-Reply-To: References: Message-ID: <21538.45886.742043.336558@max.nulle.part> Hi Michele On 24 September 2014 at 11:29, Michele Salvadore wrote: | Hi, | | I am trying to build rquantib on windows as I need to add/improve some features | related to fixed income pricing. Cool! Contributions for fixed income would be excellent! | This is my e4nvironment configuration: | | BOOSTLIB="C:/workspace/lib/boost/boost_1_56_0" | QUANTLIB_ROOT="C:/workspace/lib/QuantLib/QuantLib-1.4" So I presume you built / installed both from source? R and its tools are a little picky sometimes. This as works (eg for the Windows binaries on CRAN) with a prepared builds you can also get from CRAN. See here: http://www.stats.ox.ac.uk/pub/Rtools/R215x.html With directory: http://www.stats.ox.ac.uk/pub/Rtools/goodies/multilib/ That Quantlib14.zip then has the QuantLib library and Boost headers referenced in src/Makevars.win via the environment variable. That said, it should of course also work as you do, but you have to be careful: | > sessionInfo() | R version 3.1.1 (2014-07-10) | Platform: x86_64-w64-mingw32/x64 (64-bit) | | locale: | [1] LC_COLLATE=English_United States.1252 ?LC_CTYPE=English_United States.1252 | ?? | [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C ? ? ? ? ? ? ? ? ? ? ? ? | ? | [5] LC_TIME=English_United States.1252 ? ? | | attached base packages: | [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base ? ?? | | loaded via a namespace (and not attached): | [1] tools_3.1.1 | | When I "Build & Reload" (from RStudio) I get the following: | | ==> Rcmd.exe INSTALL --no-multiarch --with-keep.source rquantlib | | * installing to library 'C:/Program Files/R/R-3.1.1/library' | * installing *source* package 'RQuantLib' ... | | ? ?********************************************** | ? ?WARNING: this package has a configure script | ? ? ? ? ?It probably needs manual configuration | ? ?********************************************** | | | ** libs | g++ -m64 -I"C:/PROGRA~1/R/R-31~1.1/include" -DNDEBUG ? ?-I"C:/Program Files/R/ | R-3.1.1/library/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" | ?-I"C:/workspace/lib/QuantLib/QuantLib-1.4" -I../inst/include -I. -I"C:/ | workspace/lib/boost/boost_1_56_0" ? -O2 -Wall ?-mtune=core2 -c RcppExports.cpp | -o RcppExports.o | In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/models/ | model.hpp:30:0, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/pricingengines/ | latticeshortratemodelengine.hpp:28, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ | callablebonds/treecallablebondengine.hpp:28, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ | callablebonds/all.hpp:9, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ | all.hpp:6, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/ | quantlib.hpp:42, | ? ? ? ? ? ? ? ? ?from ../inst/include/rquantlib_internal.h:24, | ? ? ? ? ? ? ? ? ?from ../inst/include/RQuantLib.h:23, | ? ? ? ? ? ? ? ? ?from RcppExports.cpp:4: | C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/lattices/lattice.hpp:169:0: | warning: ignoring #pragma omp parallel [-Wunknown-pragmas] So you gcc / g++ does not know about OpenMP? I can't recall what the status was -- OpenMP and its lib may be an additional download? In any event this does not block CRAN for its own builds of RQuantLib binaries for Windows. So there must be a fix. | In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ | finitedifferences/operatortraits.hpp:27:0, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ | finitedifferences/utilities/fdmboundaryconditionset.hpp:27, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ | finitedifferences/solvers/fdmbackwardsolver.hpp:28, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ | finitedifferences/fdextoujumpvanillaengine.hpp:30, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ | finitedifferences/all.hpp:5, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ | all.hpp:15, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/ | quantlib.hpp:42, | ? ? ? ? ? ? ? ? ?from ../inst/include/rquantlib_internal.h:24, | ? ? ? ? ? ? ? ? ?from ../inst/include/RQuantLib.h:23, | ? ? ? ? ? ? ? ? ?from RcppExports.cpp:4: | C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/ | stepcondition.hpp:48:0: warning: ignoring #pragma omp parallel | [-Wunknown-pragmas] | In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ | finitedifferences/fdtypedefs.hpp:28:0, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ | finitedifferences/americancondition.hpp:28, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ | finitedifferences/all.hpp:4, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ | all.hpp:4, | ? ? ? ? ? ? ? ? ?from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/ | quantlib.hpp:47, | ? ? ? ? ? ? ? ? ?from ../inst/include/rquantlib_internal.h:24, | ? ? ? ? ? ? ? ? ?from ../inst/include/RQuantLib.h:23, | ? ? ? ? ? ? ? ? ?from RcppExports.cpp:4: | C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/ | parallelevolver.hpp:51:0: warning: ignoring #pragma omp parallel | [-Wunknown-pragmas] | C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/ | parallelevolver.hpp:102:0: warning: ignoring #pragma omp parallel | [-Wunknown-pragmas] | In file included from C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/ | as.h:25:0, | ? ? ? ? ? ? ? ? ?from C:/Program Files/R/R-3.1.1/library/Rcpp/include/ | RcppCommon.h:169, | ? ? ? ? ? ? ? ? ?from ../inst/include/rquantlib_internal.h:30, | ? ? ? ? ? ? ? ? ?from ../inst/include/RQuantLib.h:23, | ? ? ? ? ? ? ? ? ?from RcppExports.cpp:4: | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h: In | constructor 'Rcpp::traits::Exporter::Exporter(SEXP) [with T = long long | unsigned int, SEXP = SEXPREC*]': | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:79:51: ? instantiated | from 'T Rcpp::internal::as(SEXP, Rcpp::traits::r_type_generic_tag) [with T = | long long unsigned int, SEXP = SEXPREC*]' | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:144:84: ? | instantiated from 'T Rcpp::as(SEXP) [with T = long long unsigned int, SEXP = | SEXPREC*]' | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/InputParameter.h:34:45: ? | instantiated from 'Rcpp::InputParameter::operator T() [with T = long long | unsigned int]' | RcppExports.cpp:29:161: ? instantiated from here | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h:31:31: | error: invalid conversion from 'SEXP' to 'long long unsigned int' You may need to define the C++11 compilation so that we get 'long long' types. That is a known issue with Boost. Or maybe we need to set a define to not request it -- I don't recall. As a test, you could also try uploading your source to http://win-builder.r-project.org Make sure you use YOUR email in the Maintainer field or the results email goes to me. Let me know how it goes. I hope we can make this work. Dirk | [-fpermissive] | make: *** [RcppExports.o] Error 1 | Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.1/etc | /x64/Makeconf" -f "C:/PROGRA~1/R/R-31~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS | ='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="RQuantLib.dll" WIN=64 | TCLBIN=64 OBJECTS="RcppExports.o asian.o barrier_binary.o bermudan.o bonds.o | calendars.o curves.o dates.o daycounter.o discount.o hullwhite.o implieds.o | modules.o utils.o vanilla.o zero.o"' had status 2 | ERROR: compilation failed for package 'RQuantLib' | * removing 'C:/Program Files/R/R-3.1.1/library/RQuantLib' | * restoring previous 'C:/Program Files/R/R-3.1.1/library/RQuantLib' | | Exited with status 1. | | | Any idea how to fix this? | | Thanks, | Michele | _______________________________________________ | Rquantlib-devel mailing list | Rquantlib-devel at lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rquantlib-devel -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org From blewis at illposed.net Wed Sep 24 15:17:31 2014 From: blewis at illposed.net (Bryan W. Lewis) Date: Wed, 24 Sep 2014 09:17:31 -0400 Subject: [Rquantlib-devel] Building rquantlib on windows In-Reply-To: <21538.45886.742043.336558@max.nulle.part> References: <21538.45886.742043.336558@max.nulle.part> Message-ID: On 9/24/14, Dirk Eddelbuettel wrote: > > Hi Michele > > On 24 September 2014 at 11:29, Michele Salvadore wrote: > | Hi, > | > | I am trying to build rquantib on windows as I need to add/improve some > features > | related to fixed income pricing. > > Cool! Contributions for fixed income would be excellent! > > | This is my e4nvironment configuration: > | > | BOOSTLIB="C:/workspace/lib/boost/boost_1_56_0" > | QUANTLIB_ROOT="C:/workspace/lib/QuantLib/QuantLib-1.4" > > So I presume you built / installed both from source? > > R and its tools are a little picky sometimes. This as works (eg for the > Windows binaries on CRAN) with a prepared builds you can also get from > CRAN. > > See here: http://www.stats.ox.ac.uk/pub/Rtools/R215x.html > > With directory: http://www.stats.ox.ac.uk/pub/Rtools/goodies/multilib/ > > That Quantlib14.zip then has the QuantLib library and Boost headers > referenced in src/Makevars.win via the environment variable. > > > That said, it should of course also work as you do, but you have to be > careful: > > | > sessionInfo() > | R version 3.1.1 (2014-07-10) > | Platform: x86_64-w64-mingw32/x64 (64-bit) > | > | locale: > | [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United > States.1252 > | > | [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C > > | > | [5] LC_TIME=English_United States.1252 > | > | attached base packages: > | [1] stats graphics grDevices utils datasets methods base > | > | loaded via a namespace (and not attached): > | [1] tools_3.1.1 > | > | When I "Build & Reload" (from RStudio) I get the following: > | > | ==> Rcmd.exe INSTALL --no-multiarch --with-keep.source rquantlib > | > | * installing to library 'C:/Program Files/R/R-3.1.1/library' > | * installing *source* package 'RQuantLib' ... > | > | ********************************************** > | WARNING: this package has a configure script > | It probably needs manual configuration > | ********************************************** > | > | > | ** libs > | g++ -m64 -I"C:/PROGRA~1/R/R-31~1.1/include" -DNDEBUG -I"C:/Program > Files/R/ > | R-3.1.1/library/Rcpp/include" > -I"d:/RCompile/CRANpkg/extralibs64/local/include" > | -I"C:/workspace/lib/QuantLib/QuantLib-1.4" -I../inst/include -I. -I"C:/ > | workspace/lib/boost/boost_1_56_0" -O2 -Wall -mtune=core2 -c > RcppExports.cpp > | -o RcppExports.o > | In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/models/ > | model.hpp:30:0, > | from > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/pricingengines/ > | latticeshortratemodelengine.hpp:28, > | from > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ > | callablebonds/treecallablebondengine.hpp:28, > | from > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ > | callablebonds/all.hpp:9, > | from > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ > | all.hpp:6, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/ > | quantlib.hpp:42, > | from ../inst/include/rquantlib_internal.h:24, > | from ../inst/include/RQuantLib.h:23, > | from RcppExports.cpp:4: > | > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/lattices/lattice.hpp:169:0: > | warning: ignoring #pragma omp parallel [-Wunknown-pragmas] > > So you gcc / g++ does not know about OpenMP? I can't recall what the > status > was -- OpenMP and its lib may be an additional download? In any event this > does not block CRAN for its own builds of RQuantLib binaries for Windows. > So > there must be a fix. > > | In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ > | finitedifferences/operatortraits.hpp:27:0, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ > | finitedifferences/utilities/fdmboundaryconditionset.hpp:27, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ > | finitedifferences/solvers/fdmbackwardsolver.hpp:28, > | from > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ > | finitedifferences/fdextoujumpvanillaengine.hpp:30, > | from > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ > | finitedifferences/all.hpp:5, > | from > C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/ > | all.hpp:15, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/ > | quantlib.hpp:42, > | from ../inst/include/rquantlib_internal.h:24, > | from ../inst/include/RQuantLib.h:23, > | from RcppExports.cpp:4: > | C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/ > | stepcondition.hpp:48:0: warning: ignoring #pragma omp parallel > | [-Wunknown-pragmas] > | In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ > | finitedifferences/fdtypedefs.hpp:28:0, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ > | finitedifferences/americancondition.hpp:28, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ > | finitedifferences/all.hpp:4, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/ > | all.hpp:4, > | from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/ > | quantlib.hpp:47, > | from ../inst/include/rquantlib_internal.h:24, > | from ../inst/include/RQuantLib.h:23, > | from RcppExports.cpp:4: > | C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/ > | parallelevolver.hpp:51:0: warning: ignoring #pragma omp parallel > | [-Wunknown-pragmas] > | C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/ > | parallelevolver.hpp:102:0: warning: ignoring #pragma omp parallel > | [-Wunknown-pragmas] > | In file included from C:/Program > Files/R/R-3.1.1/library/Rcpp/include/Rcpp/ > | as.h:25:0, > | from C:/Program Files/R/R-3.1.1/library/Rcpp/include/ > | RcppCommon.h:169, > | from ../inst/include/rquantlib_internal.h:30, > | from ../inst/include/RQuantLib.h:23, > | from RcppExports.cpp:4: > | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h: > In > | constructor 'Rcpp::traits::Exporter::Exporter(SEXP) [with T = long > long > | unsigned int, SEXP = SEXPREC*]': > | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:79:51: > instantiated > | from 'T Rcpp::internal::as(SEXP, Rcpp::traits::r_type_generic_tag) [with T > = > | long long unsigned int, SEXP = SEXPREC*]' > | C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:144:84: > | instantiated from 'T Rcpp::as(SEXP) [with T = long long unsigned int, SEXP > = > | SEXPREC*]' > | C:/Program > Files/R/R-3.1.1/library/Rcpp/include/Rcpp/InputParameter.h:34:45: > | instantiated from 'Rcpp::InputParameter::operator T() [with T = long > long > | unsigned int]' > | RcppExports.cpp:29:161: instantiated from here > | C:/Program > Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h:31:31: > | error: invalid conversion from 'SEXP' to 'long long unsigned int' > > You may need to define the C++11 compilation so that we get 'long long' > types. That is a known issue with Boost. Or maybe we need to set a define > to > not request it -- I don't recall. I'll also try to experiment with this on Windows. I hit something similar to this a while back and used the newer int64_t type from inttypes.h. I'll let you know what I find... > > > As a test, you could also try uploading your source to > http://win-builder.r-project.org > Make sure you use YOUR email in the Maintainer field or the results email > goes to me. > > Let me know how it goes. I hope we can make this work. > > Dirk > > | [-fpermissive] > | make: *** [RcppExports.o] Error 1 > | Warning: running command 'make -f "Makevars.win" -f > "C:/PROGRA~1/R/R-31~1.1/etc > | /x64/Makeconf" -f "C:/PROGRA~1/R/R-31~1.1/share/make/winshlib.mk" > SHLIB_LDFLAGS > | ='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="RQuantLib.dll" > WIN=64 > | TCLBIN=64 OBJECTS="RcppExports.o asian.o barrier_binary.o bermudan.o > bonds.o > | calendars.o curves.o dates.o daycounter.o discount.o hullwhite.o > implieds.o > | modules.o utils.o vanilla.o zero.o"' had status 2 > | ERROR: compilation failed for package 'RQuantLib' > | * removing 'C:/Program Files/R/R-3.1.1/library/RQuantLib' > | * restoring previous 'C:/Program Files/R/R-3.1.1/library/RQuantLib' > | > | Exited with status 1. > | > | > | Any idea how to fix this? > | > | Thanks, > | Michele > | _______________________________________________ > | Rquantlib-devel mailing list > | Rquantlib-devel at lists.r-forge.r-project.org > | > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rquantlib-devel > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org > _______________________________________________ > Rquantlib-devel mailing list > Rquantlib-devel at lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rquantlib-devel > From edd at debian.org Wed Sep 24 15:36:16 2014 From: edd at debian.org (Dirk Eddelbuettel) Date: Wed, 24 Sep 2014 08:36:16 -0500 Subject: [Rquantlib-devel] Building rquantlib on windows In-Reply-To: References: <21538.45886.742043.336558@max.nulle.part> Message-ID: <21538.51408.648439.519929@max.nulle.part> On 24 September 2014 at 09:17, Bryan W. Lewis wrote: | On 9/24/14, Dirk Eddelbuettel wrote: | > On 24 September 2014 at 11:29, Michele Salvadore wrote: | > | C:/Program | > Files/R/R-3.1.1/library/Rcpp/include/Rcpp/InputParameter.h:34:45: | > | instantiated from 'Rcpp::InputParameter::operator T() [with T = long | > long | > | unsigned int]' | > | RcppExports.cpp:29:161: instantiated from here | > | C:/Program | > Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h:31:31: | > | error: invalid conversion from 'SEXP' to 'long long unsigned int' | > | > You may need to define the C++11 compilation so that we get 'long long' | > types. That is a known issue with Boost. Or maybe we need to set a define | > to | > not request it -- I don't recall. | | I'll also try to experiment with this on Windows. I hit something | similar to this a while back and used the newer int64_t type from | inttypes.h. I'll let you know what I find... Really appreciate it. I have a fair amount of changes (from older SEXP interfaces to newer, cleaner Rcpp Attributes-supported code) in the repo and am due a new version anyway. This may fit it in nicely too. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org From michele.salvadore at gmail.com Wed Sep 24 18:42:50 2014 From: michele.salvadore at gmail.com (Michele Salvadore) Date: Wed, 24 Sep 2014 18:42:50 +0200 Subject: [Rquantlib-devel] Building rquantlib on windows In-Reply-To: <21538.51408.648439.519929@max.nulle.part> References: <21538.45886.742043.336558@max.nulle.part> <21538.51408.648439.519929@max.nulle.part> Message-ID: Hi there, thanks for the heads up, the -std=c++0x flag got it going. In regards to openMP support, I haven't found where to get it, any pointers? I still have some error with the linkage, see below. I am using Rtools31.exe as well as the Quantlib14 available here, http://www.stats.ox.ac.uk/pub/Rtools/goodies/multilib/ (before I was using my own built done with visual studio). I also rebuilt Rcpp with the Rtools. Any help is very much appreciated, thanks! ==> Rcmd.exe INSTALL --no-multiarch --with-keep.source rquantlib * installing to library 'C:/Program Files/R/R-3.1.1/library' * installing *source* package 'RQuantLib' ... ********************************************** WARNING: this package has a configure script It probably needs manual configuration ********************************************** ** libs g++ -m64 -shared -s -static-libgcc -o RQuantLib.dll tmp.def RcppExports.o asian.o barrier_binary.o bermudan.o bonds.o calendars.o curves.o dates.o daycounter.o discount.o hullwhite.o implieds.o modules.o utils.o vanilla.o zero.o -LC:/workspace/lib/QuantLib/Quantlib14/lib/x64 -lQuantLib -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.1/bin/x64 -lR asian.o:asian.cpp:(.text+0x6d0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here asian.o:asian.cpp:(.text+0x920): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here asian.o:asian.cpp:(.text+0xad0): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here asian.o:asian.cpp:(.text+0x4a70): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here bonds.o:bonds.cpp:(.text+0x6c0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here bonds.o:bonds.cpp:(.text+0x1be0): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here bonds.o:bonds.cpp:(.text+0x1ed0): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here bonds.o:bonds.cpp:(.text+0x1df50): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here calendars.o:calendars.cpp:(.text+0x6c0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here calendars.o:calendars.cpp:(.text+0x59c0): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here calendars.o:calendars.cpp:(.text+0x5b70): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here calendars.o:calendars.cpp:(.text+0x6210): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here curves.o:curves.cpp:(.text+0x6f0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here curves.o:curves.cpp:(.text+0x920): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here curves.o:curves.cpp:(.text+0x6280): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here curves.o:curves.cpp:(.text+0x6570): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here dates.o:dates.cpp:(.text+0x6c0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here dates.o:dates.cpp:(.text+0xa60): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here dates.o:dates.cpp:(.text+0xd50): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here dates.o:dates.cpp:(.text+0x11a0): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here hullwhite.o:hullwhite.cpp:(.text+0x6c0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here hullwhite.o:hullwhite.cpp:(.text+0xc30): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here hullwhite.o:hullwhite.cpp:(.text+0xf20): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here hullwhite.o:hullwhite.cpp:(.text+0x5f60): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here modules.o:modules.cpp:(.text+0xab0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here modules.o:modules.cpp:(.text+0xce0): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here modules.o:modules.cpp:(.text+0x1500): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here modules.o:modules.cpp:(.text+0x2720): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here utils.o:utils.cpp:(.text+0x6e0): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here utils.o:utils.cpp:(.text+0x2450): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here utils.o:utils.cpp:(.text+0x2740): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here utils.o:utils.cpp:(.text+0x9f40): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here vanilla.o:vanilla.cpp:(.text+0xa10): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here vanilla.o:vanilla.cpp:(.text+0xf10): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here vanilla.o:vanilla.cpp:(.text+0x1200): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here vanilla.o:vanilla.cpp:(.text+0x95b0): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here zero.o:zero.cpp:(.text+0x890): multiple definition of `SEXPREC* Rcpp::wrap(QuantLib::Date const&)' RcppExports.o:RcppExports.cpp:(.text+0x8a0): first defined here zero.o:zero.cpp:(.text+0xae0): multiple definition of `std::vector > Rcpp::as > >(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x4a90): first defined here zero.o:zero.cpp:(.text+0xdd0): multiple definition of `QuantLib::Date Rcpp::as(SEXPREC*)' RcppExports.o:RcppExports.cpp:(.text+0x6040): first defined here zero.o:zero.cpp:(.text+0x4770): multiple definition of `SEXPREC* Rcpp::wrap > >(std::vector > const&)' RcppExports.o:RcppExports.cpp:(.text+0xad0): first defined here C:/workspace/lib/QuantLib/Quantlib14/lib/x64/libQuantLib.a(normaldistribution.o):normaldistribution.cpp:(.data$_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_3[_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_3]+0x0): multiple definition of `long double boost::math::detail::erf_inv_imp, boost::math::policies::promote_double, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy> >(long double const&, long double const&, boost::math::policies::policy, boost::math::policies::promote_double, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy> const&, mpl_::int_<64> const*)::P' asian.o:asian.cpp:(.rdata$_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_3[_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_3]+0x0): first defined here C:/workspace/lib/QuantLib/Quantlib14/lib/x64/libQuantLib.a(normaldistribution.o):normaldistribution.cpp:(.data$_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_4[_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_4]+0x0): multiple definition of `long double boost::math::detail::erf_inv_imp, boost::math::policies::promote_double, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy> >(long double const&, long double const&, boost::math::policies::policy, boost::math::policies::promote_double, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy> const&, mpl_::int_<64> const*)::P' RcppExports.o:RcppExports.cpp:(.rdata$_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_4[_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1P_4]+0x0): first defined here C:/workspace/lib/QuantLib/Quantlib14/lib/x64/libQuantLib.a(normaldistribution.o):normaldistribution.cpp:(.data$_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1Q_4[_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1Q_4]+0x0): multiple definition of `long double boost::math::detail::erf_inv_imp, boost::math::policies::promote_double, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy> >(long double const&, long double const&, boost::math::policies::policy, boost::math::policies::promote_double, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy> const&, mpl_::int_<64> const*)::Q' asian.o:asian.cpp:(.rdata$_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1Q_4[_ZZN5boost4math6detail11erf_inv_impIeNS0_8policies6policyINS3_13promote_floatILb0EEENS3_14promote_doubleILb0EEENS3_14default_policyES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEET_RKSB_SD_RKT0_PKN4mpl_4int_ILi64EEEE1Q_4]+0x0): first defined here collect2: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'RQuantLib' * removing 'C:/Program Files/R/R-3.1.1/library/RQuantLib' * restoring previous 'C:/Program Files/R/R-3.1.1/library/RQuantLib' Exited with status 1. On 24 September 2014 15:36, Dirk Eddelbuettel wrote: > > On 24 September 2014 at 09:17, Bryan W. Lewis wrote: > | On 9/24/14, Dirk Eddelbuettel wrote: > | > On 24 September 2014 at 11:29, Michele Salvadore wrote: > | > | C:/Program > | > Files/R/R-3.1.1/library/Rcpp/include/Rcpp/InputParameter.h:34:45: > | > | instantiated from 'Rcpp::InputParameter::operator T() [with T = > long > | > long > | > | unsigned int]' > | > | RcppExports.cpp:29:161: instantiated from here > | > | C:/Program > | > Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h:31:31: > | > | error: invalid conversion from 'SEXP' to 'long long unsigned int' > | > > | > You may need to define the C++11 compilation so that we get 'long long' > | > types. That is a known issue with Boost. Or maybe we need to set a > define > | > to > | > not request it -- I don't recall. > | > | I'll also try to experiment with this on Windows. I hit something > | similar to this a while back and used the newer int64_t type from > | inttypes.h. I'll let you know what I find... > > Really appreciate it. I have a fair amount of changes (from older SEXP > interfaces to newer, cleaner Rcpp Attributes-supported code) in the repo > and > am due a new version anyway. This may fit it in nicely too. > > Dirk > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: