As it may help people here is a mail forward regarding compilation issue with gcc 2.95.4 (the simpliest solution was upgrading to g++/gcc 3.x and get a new stdlib) :
|
|
I have a problem compiling on linux debian with gcc 2.95.4 the quantlib 0.34 i have errors on barrierpathpricer, but after some look in source, replacing "at" by "dt" on lines 84 103 122 141 seems to fix the problem.
|
Ouch. It's true, gcc 2.95 doesn't support the full std::vector interface.
Replacing 'at' with 'dt' makes it compile, but the code does not the right thing. The right workaround is to replace 'foo.at(i)' with 'foo[i]' (the 'at' method is a bound-checked version of element access.)
Cheers,
Luigi
Protect your PC -
Click here for McAfee.com VirusScan Online