Re: problem in compilation QL 0.34 with linux debian gcc 2.95.4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: problem in compilation QL 0.34 with linux debian gcc 2.95.4

Eric Delcamp-2
As it may be usefull for some, here is a forward regarding problem compiling
QL with gcc 2.95.4.
Problem was solved upgrading gcc/g++ to 3.x series (and stllib).

>>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
>

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus



Reply | Threaded
Open this post in threaded view
|

Re: Re: problem in compilation QL 0.34 with linux debian gcc 2.95.4

Dirk Eddelbuettel
On Tue, Jan 06, 2004 at 08:55:59AM +0100, Eric Delcamp wrote:
> As it may be usefull for some, here is a forward regarding problem
> compiling QL with gcc 2.95.4.
> Problem was solved upgrading gcc/g++ to 3.x series (and stllib).
>
> >>I have a problem compiling on linux debian with gcc 2.95.4 the quantlib

But if you're on Debian you have easy access to 3.* gcc/g++ (as well as to
pre-built quantlib). Why not uses them? A lot changed in the C++ compiler,
and some things are really better.

Dirk

--
The relationship between the computed price and reality is as yet unknown.  
                                             -- From the pac(8) manual page