Re: QuantLib:0.3.12 bug and polishes
Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/QuantLib-0-3-12-bug-and-polishes-tp11115p11116.html
Hi Eugene,
On 05/10/2006 02:15:15 PM, Eugene Shevkoplyas wrote:
> 1. [Bug] I've got the error like "Tamas R Sashalmi"
>
> Testing analytic Heston engine against Black formula...
> quantlib/0.3.12/src/test-suite/hestonmodel.cpp(296): fatal error in
> "HestonModelTest::testAnalyticVsBlack": failed to reproduce Black
> price
> calculated: 0.80067
> expected: 0.80067
> error: 1.071473e-007
This was already fixed in CVS.
> 2. I use some extra compiler's options: -std=gnu99 -pedantic -Wall
> -ansi
I see. I've been using the -pedantic -Wall -ansi flags, but not -std.
> So I get many errors during compilation:
>
> 2.1. C++ style comment in C sources.
> In files ql/RandomNumbers/primitivepolynomials.[ch]
> there are "// ... " comments used instead of "/* ... */".
Fixed.
> 2.2. Non ASCII symbols
> Also in files ql/RandomNumbers/primitivepolynomials.[ch]
> I've got many errors like this:
> error: stray '\169' in program
> It is because there are name in comment with strange symbol:
> "Monte Carlo Methods in Finance" by Peter J?kel
Hmm. I'd rather keep the correct name. Is there any directive I can add
to the file to disable the warning?
Thanks,
Luigi
----------------------------------------
The first rule of intelligent tinkering is to save all the parts.
-- Paul Erlich