[Coin-discuss] Problem Compiling Coin with Visual C++ 2005 Express Edition

Luca.caponio luca.caponio at email.it
Tue Mar 28 07:50:09 EST 2006


Dear all,
I\'m trying to compile the COIN project under Visual C++ 2005 Express
Edition, but the compiler gives this error:


---- COMPILER OUTPUT START---
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(572) :
error C2039: \'iterator_category\' : is not a member of
\'OsiCuts::const_iterator\'
        e:\\coin\\osi\\include\\osicuts.hpp(75) : see declaration of
\'OsiCuts::const_iterator\'
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(1368) : see reference to class template
instantiation \'std::iterator_traits<_Iter>\' being compiled
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\algorithm(3819) : see reference to function template
instantiation \'void std::_Debug_range<_FwdIt>(_InIt,_InIt,const wchar_t
*,unsigned int)\' being compiled
        with
        [
            _FwdIt=OsiCuts::const_iterator,
            _InIt=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\algorithm(3833) : see reference to function template
instantiation \'_FwdIt
std::_Min_element<OsiCuts::const_iterator,_Pr>(_FwdIt,_FwdIt,_Pr)\' being
compiled
        with
        [
            _FwdIt=OsiCuts::const_iterator,
            _Pr=OsiCuts::OsiCutCompare
        ]
        e:\\coin\\osi\\include\\osicuts.hpp(363) : see reference to function
template instantiation \'_FwdIt
std::min_element<OsiCuts::const_iterator,OsiCuts::OsiCutCompare>(_FwdIt,_FwdIt,_Pr)\'
being compiled
        with
        [
            _FwdIt=OsiCuts::const_iterator,
            _Pr=OsiCuts::OsiCutCompare
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(572) :
error C2146: syntax error : missing \';\' before identifier
\'iterator_category\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(572) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(572) :
error C2602: \'std::iterator_traits<_Iter>::iterator_category\' is not a
member of a base class of \'std::iterator_traits<_Iter>\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(572) : see declaration of
\'std::iterator_traits<_Iter>::iterator_category\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(572) :
error C2868: \'std::iterator_traits<_Iter>::iterator_category\' : illegal
syntax for using-declaration; expected qualified-name
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(573) :
error C2039: \'value_type\' : is not a member of \'OsiCuts::const_iterator\'
        e:\\coin\\osi\\include\\osicuts.hpp(75) : see declaration of
\'OsiCuts::const_iterator\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(573) :
error C2146: syntax error : missing \';\' before identifier \'value_type\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(573) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(573) :
error C2602: \'std::iterator_traits<_Iter>::value_type\' is not a member of
a base class of \'std::iterator_traits<_Iter>\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(573) : see declaration of
\'std::iterator_traits<_Iter>::value_type\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(573) :
error C2868: \'std::iterator_traits<_Iter>::value_type\' : illegal syntax
for using-declaration; expected qualified-name
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(574) :
error C2039: \'difference_type\' : is not a member of
\'OsiCuts::const_iterator\'
        e:\\coin\\osi\\include\\osicuts.hpp(75) : see declaration of
\'OsiCuts::const_iterator\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(574) :
error C2146: syntax error : missing \';\' before identifier
\'difference_type\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(574) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(574) :
error C2602: \'std::iterator_traits<_Iter>::difference_type\' is not a
member of a base class of \'std::iterator_traits<_Iter>\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(574) : see declaration of
\'std::iterator_traits<_Iter>::difference_type\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(574) :
error C2868: \'std::iterator_traits<_Iter>::difference_type\' : illegal
syntax for using-declaration; expected qualified-name
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(576) :
error C2039: \'pointer\' : is not a member of \'OsiCuts::const_iterator\'
        e:\\coin\\osi\\include\\osicuts.hpp(75) : see declaration of
\'OsiCuts::const_iterator\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(576) :
error C2146: syntax error : missing \';\' before identifier \'pointer\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(576) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(576) :
error C2602: \'std::iterator_traits<_Iter>::pointer\' is not a member of a
base class of \'std::iterator_traits<_Iter>\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(576) : see declaration of
\'std::iterator_traits<_Iter>::pointer\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(576) :
error C2868: \'std::iterator_traits<_Iter>::pointer\' : illegal syntax for
using-declaration; expected qualified-name
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(577) :
error C2039: \'reference\' : is not a member of \'OsiCuts::const_iterator\'
        e:\\coin\\osi\\include\\osicuts.hpp(75) : see declaration of
\'OsiCuts::const_iterator\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(577) :
error C2146: syntax error : missing \';\' before identifier \'reference\'
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(577) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(577) :
error C2602: \'std::iterator_traits<_Iter>::reference\' is not a member of a
base class of \'std::iterator_traits<_Iter>\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(577) : see declaration of
\'std::iterator_traits<_Iter>::reference\'
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(577) :
error C2868: \'std::iterator_traits<_Iter>::reference\' : illegal syntax for
using-declaration; expected qualified-name
        with
        [
            _Iter=OsiCuts::const_iterator
        ]
d:\\program files\\microsoft visual studio 8\\vc\\include\\xutility(1368) :
error C2665: \'std::_Debug_range2\' : none of the 2 overloads could convert
all the argument types
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(1347): could be \'void
std::_Debug_range2<_InIt>(_InIt,_InIt,const wchar_t *,unsigned
int,std::input_iterator_tag)\'
        with
        [
            _InIt=OsiCuts::const_iterator
        ]
        d:\\program files\\microsoft visual studio
8\\vc\\include\\xutility(1353): or \'void
std::_Debug_range2<_InIt>(_RanIt,_RanIt,const wchar_t *,unsigned
int,std::random_access_iterator_tag)\'
        with
        [
            _InIt=OsiCuts::const_iterator,
            _RanIt=OsiCuts::const_iterator
        ]
        while trying to match the argument list \'(OsiCuts::const_iterator,
OsiCuts::const_iterator, const wchar_t *, unsigned int, int)\'

---- COMPILER OUTPUT END---

the log reported refers to Cbc_C_Interface.cpp, but many other .cpp files
have the same problem.

Did anyone already found this?
Thank you very much,

Luca Caponio 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Sei in cerca dell’amore? Non perdere tempo, iscriviti gratis a Meetic!
Potrai chattare con migliaia di single in linea.
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4052&d=20060328

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20060328/276f2894/attachment.html>


More information about the Coin-discuss mailing list