|
From: Francois B. <ig...@gm...> - 2021-12-16 11:17:43
|
Hi, After a recent query about QuantlibXL <https://sourceforge.net/p/quantlib/mailman/message/37401063/>, I decided to try to build it myself against Quantlib 1.23. However, before I could even reach the relevant part of the query I noticed something else that confuses me. If I build Quantlib on its own (+ its test suite, but excluding examples), the build completes without compile time errors. But when I link QuantlibXL to Quantlib v1.23 then I get a compile time error at https://github.com/lballabio/QuantLib/blob/73e39d104693a959ecc38fa3d0c6ee7875cd2fc4/ql/models/marketmodels/historicalforwardratesanalysis.hpp#L134 You'll notice the line passes the Real accuracy parameter that has recently moved to the Bootstrap object. So the compile time error makes sense to me. However, I'm confused as to why the build passes when I'm building Quantlib on its own, as historicalforwardratesanalysis.hpp is part of the Quantlib project and I expected the compile error to occur there too. Is this a C++ peculiarity where, if nothing links to the class, it is optimised out and not actually compiled? thanks Francois Botha |