Quantlib does not compile under the Microsoft VC++ .NET compilers

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

Quantlib does not compile under the Microsoft VC++ .NET compilers

Dann Corbit
Message
It fails under both Microsoft VC++ .NET and Microsoft VC++ .NET 2003.
 
u:\QuantLib\ql\Utilities\steppingiterator.hpp(108) : error C2061: syntax error : identifier 'difference_type'
u:\QuantLib\ql\Utilities\steppingiterator.hpp(108) : warning C4346: 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::difference_type' : dependent name is not a type prefix with 'typename' to indicate a type
u:\QuantLib\ql\Utilities\steppingiterator.hpp(109) : error C2244: 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::__ctor' : unable to match function definition to an existing declaration u:\QuantLib\ql\Utilities\steppingiterator.hpp(55) : see declaration of 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::__ctor' definition 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::stepping_iterator(const RandomAccessIterator &)' existing declarations 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::stepping_iterator(const RandomAccessIterator &,QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::difference_type)'
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : error C2072: 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::operator`+='' : initialization of a function
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : error C2146: syntax error : missing ')' before identifier 'i'
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : error C2433: 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::operator`+='' : 'inline' not permitted on data declarations
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : fatal error C1903: unable to recover from previous error(s); stopping compilation
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : warning C4346: 'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::difference_type' : dependent name is not a type prefix with 'typename' to indicate a type
Probably, it is some difference in the implementation of the STL.
 
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib does not compile under the Microsoft VC++ .NET compilers

Luigi Ballabio-2
At 22:01 15/10/2003, Dann Corbit wrote:
>It fails under both Microsoft VC++ .NET and Microsoft VC++ .NET 2003.

Dann,
         I assume you're using 0.3.3, right? The problem has been fixed in CVS.

Bye,
         Luigi