Error in compiling of QuantLib examples
Posted by
ziegele on
Jan 24, 2017; 8:17pm
URL: http://quantlib.414.s1.nabble.com/Error-in-compiling-of-QuantLib-examples-tp17991.html
Hello,
I am a starter of using QuantLib. I'm currently following the tutorial as shown in
http://cogitolearning.co.uk/?p=332The code I wrote in enclosed in attachment.
main.cppIf I follow exactly as what's shown in the tutorial, I got an error when compiling:

Then I figured out that there might be a typo in the tutorial, so I changed cashFlows[i].accept(addCashFlowVisitor); to cashFlows[i]->accept(addCashFlowVisitor);
However, I still got an error when trying to compile:

I'm wondering how to fix it?
Thanks