[Coin-ipopt] Errors during compilation in Visual studio 2003

Bai-Lin Deng bldeng at gmail.com
Mon Oct 16 04:52:22 EDT 2006


Hi all,

    I have just downloaded the Ipopt-3.2.1 codes and tried to compile it on
my windows machine. I use Visual studio .net  2003 to open the MSVC solution
file provided in the codes. Then I found the following error while compiling
the library:

IpCompoundSymMatrix.cpp
c:\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>
        ]
        f:\Documents\Visual Studio Projects\Ipopt-
3.2.1\Ipopt\src\LinAlg\IpCompoundSymMatrix.cpp(228) : see reference to class
template instantiation 'std::vector<_Ty,_Ax>' being compiled
        with
        [
            _Ty=bool,
            _Ax=std::allocator<bool>
        ]


It happens when the compiling is dealing with the following line of  codes:

std::vector< bool > allocate_row(irow+1, false);


Does anyone encounter the similar problem? How can I get rid of this error?
Thank you for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20061016/9bf81625/attachment.html 


More information about the Coin-ipopt mailing list