Posted by
SourceForge.net on
URL: http://quantlib.414.s1.nabble.com/quantlib-Bugs-1947215-MS-VS-2k3-complie-error-tp11859.html
Bugs item #1947215, was opened at 2008-04-20 16:26
Message generated for change (Settings changed) made by lballabio
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1947215&group_id=12740Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: MS VS 2k3 complie error
Initial Comment:
When I try to complie the quantlib C++ source file, the following message came into error log like
Below is the one of the error log. What should I do?
I am a dummy in C++. Help!
:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(1112) : error C2065: '_Myoff' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(1102) : while compiling class-template member function 'std::vector<_Ty,_Ax>::const_iterator &std::vector<_Ty,_Ax>::const_iterator::operator +=(std::vector<_Ty,_Ax>::const_iterator::difference_type)'
with
[
_Ty=bool,
_Ax=std::allocator<bool>
]
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(1455) : see reference to class template instantiation 'std::vector<_Ty,_Ax>::const_iterator' being compiled
with
[
_Ty=bool,
_Ax=std::allocator<bool>
]
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(1454) : while compiling class-template member function 'std::vector<_Ty,_Ax>::const_reference std::vector<_Ty,_Ax>::operator [](std::vector<_Ty,_Ax>::size_type) const'
with
[
_Ty=bool,
_Ax=std::allocator<bool>
]
c:\documents and settings\copolayuki\바탕 화면\quantlib\quantlib\ql\termstructures\volatility\swaption\swaptionvolcube1.hpp(148) : see reference to class template instantiation 'std::vector<_Ty,_Ax>' being compiled
with
[
_Ty=bool,
_Ax=std::allocator<bool>
]
----------------------------------------------------------------------
>Comment By: Luigi Ballabio (lballabio)
Date: 2008-05-12 11:00
Message:
Logged In: YES
user_id=75450
Originator: NO
Yes, it's a compiler problem. You can either patch the <vector> header as
described in the previous comment, or enable Microsoft extensions in the
project.
Luigi
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-04-23 07:59
Message:
Logged In: NO
This happened to me as well when I first tried to compile with 2003. I had
to actually edit the vectorr header file and replace the reference to
_Myoff with this->_Myoff. I think this is an actual error with this header,
that might have beeen corrected in a service pack I have not yet installed
at teh time, but i am not sure.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1947215&group_id=12740-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev