<div dir="ltr">Hi,<div><br></div><div>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:</div><div><br></div><div>BOOSTLIB="C:/workspace/lib/boost/boost_1_56_0"<br></div><div>QUANTLIB_ROOT="C:/workspace/lib/QuantLib/QuantLib-1.4"<br></div><div><br></div><div><div>> sessionInfo()</div><div>R version 3.1.1 (2014-07-10)</div><div>Platform: x86_64-w64-mingw32/x64 (64-bit)</div><div><br></div><div>locale:</div><div>[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   </div><div>[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          </div><div>[5] LC_TIME=English_United States.1252    </div><div><br></div><div>attached base packages:</div><div>[1] stats     graphics  grDevices utils     datasets  methods   base     </div><div><br></div><div>loaded via a namespace (and not attached):</div><div>[1] tools_3.1.1</div></div><div><br></div><div>When I "Build & Reload" (from RStudio) I get the following:</div><div><br></div><div><div>==> Rcmd.exe INSTALL --no-multiarch --with-keep.source rquantlib</div><div><br></div><div>* installing to library 'C:/Program Files/R/R-3.1.1/library'</div><div>* installing *source* package 'RQuantLib' ...</div><div><br></div><div>   **********************************************</div><div>   WARNING: this package has a configure script</div><div>         It probably needs manual configuration</div><div>   **********************************************</div><div><br></div><div><br></div><div>** libs</div><div>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</div><div>In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/models/model.hpp:30:0,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/pricingengines/latticeshortratemodelengine.hpp:28,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/callablebonds/treecallablebondengine.hpp:28,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/callablebonds/all.hpp:9,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/all.hpp:6,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/quantlib.hpp:42,</div><div>                 from ../inst/include/rquantlib_internal.h:24,</div><div>                 from ../inst/include/RQuantLib.h:23,</div><div>                 from RcppExports.cpp:4:</div><div>C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/lattices/lattice.hpp:169:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]</div><div>In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/operatortraits.hpp:27:0,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/utilities/fdmboundaryconditionset.hpp:27,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/solvers/fdmbackwardsolver.hpp:28,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/finitedifferences/fdextoujumpvanillaengine.hpp:30,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/finitedifferences/all.hpp:5,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/experimental/all.hpp:15,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/quantlib.hpp:42,</div><div>                 from ../inst/include/rquantlib_internal.h:24,</div><div>                 from ../inst/include/RQuantLib.h:23,</div><div>                 from RcppExports.cpp:4:</div><div>C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/stepcondition.hpp:48:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]</div><div>In file included from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/fdtypedefs.hpp:28:0,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/americancondition.hpp:28,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/all.hpp:4,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/all.hpp:4,</div><div>                 from C:/workspace/lib/QuantLib/QuantLib-1.4/ql/quantlib.hpp:47,</div><div>                 from ../inst/include/rquantlib_internal.h:24,</div><div>                 from ../inst/include/RQuantLib.h:23,</div><div>                 from RcppExports.cpp:4:</div><div>C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/parallelevolver.hpp:51:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]</div><div>C:/workspace/lib/QuantLib/QuantLib-1.4/ql/methods/finitedifferences/parallelevolver.hpp:102:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]</div><div>In file included from C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/as.h:25:0,</div><div>                 from C:/Program Files/R/R-3.1.1/library/Rcpp/include/RcppCommon.h:169,</div><div>                 from ../inst/include/rquantlib_internal.h:30,</div><div>                 from ../inst/include/RQuantLib.h:23,</div><div>                 from RcppExports.cpp:4:</div><div>C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/internal/Exporter.h: In constructor 'Rcpp::traits::Exporter<T>::Exporter(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]':</div><div>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*]'</div><div>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*]'</div><div>C:/Program Files/R/R-3.1.1/library/Rcpp/include/Rcpp/InputParameter.h:34:45:   instantiated from 'Rcpp::InputParameter<T>::operator T() [with T = long long unsigned int]'</div><div>RcppExports.cpp:29:161:   instantiated from here</div><div>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]</div><div>make: *** [RcppExports.o] Error 1</div><div>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/<a href="http://winshlib.mk">winshlib.mk</a>" 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</div><div>ERROR: compilation failed for package 'RQuantLib'</div><div>* removing 'C:/Program Files/R/R-3.1.1/library/RQuantLib'</div><div>* restoring previous 'C:/Program Files/R/R-3.1.1/library/RQuantLib'</div><div><br></div><div>Exited with status 1.</div></div><div><br></div><div><br></div><div>Any idea how to fix this?</div><div><br></div><div>Thanks,</div><div>Michele</div></div>