Login  Register

Re: Having build problems.

Posted by Ferdinando M. Ametrano-2 on May 01, 2002; 2:55am
URL: http://quantlib.414.s1.nabble.com/Having-build-problems-tp2024p2026.html

Hi Liam,

you wrote:
>I am using gcc version 2.96    I haven't upgraded my compiler
>at all.  Not sure why it would build successfully 10 days
>ago then.
that was because the file compoundforward.cpp wasn't in QuantLib 10 days ago.
I've noticed Andre replaced the v.at(i) with v[i], would you please check
if it solved the problem?

ciao -- Nando

>>At 10:30 PM 4/29/02 -0400, Liam Herron wrote:
>>>I checked the code out 10 days ago and built it and it worked
>>>fine.  Just recently, I updated the code base and I am getting
>>>the following error:
>>>
>>>compoundforward.cpp:150: no matching function for call to `vector<Rate,
>>>allocator<Rate> >::at (Size &)'
>>>
>>>Any ideas?
>>
>>For some reason, your compiler doesn't seem to know that std::vector has a
>>method "at". What version of gcc are you using?
>>
>>Bye,
>>         Luigi
>>
>>(note for Andre: if the indexes are known to be safe already---i.e., you
>>already know that i is between 0 and v.size() because the for loop says so,
>>or because you already verified the lengths somewhere else---it might be
>>more readable to use v[i] instead of v.at(i). What do you think?)