Compilation problem with g++ 4.8.2
Posted by
Dagur Gunnarsson on
URL: http://quantlib.414.s1.nabble.com/Compilation-problem-with-g-4-8-2-tp14632.html
Hello,
Is anyone having problems compiling (on linux) a quantlib project using gcc version 4.8.2 ??
I am getting
In file included from /usr/include/ql/indexes/inflationindex.hpp:29:0,
from /usr/include/ql/cashflows/yoyinflationcoupon.hpp:28,
from /usr/include/ql/cashflows/capflooredinflationcoupon.hpp:27,
from /usr/include/ql/cashflows/all.hpp:6,
from /usr/include/ql/quantlib.hpp:40,
from /home/dagur/work/xxx.cpp:1:
/usr/include/ql/termstructures/inflationtermstructure.hpp: In member function ‘bool QuantLib::InflationTermStructure::hasSeasonality() const’:
/usr/include/ql/termstructures/inflationtermstructure.hpp:295:16: error: cannot convert ‘const boost::shared_ptr<QuantLib::Seasonality>’ to ‘bool’ in return
return seasonality_;
The same code compiles fine with gcc 4.7.2 on Fedora 18 64bit
regards
Dagur
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users