Menu

#1 incompatibility with MSVC 7.1 with latest STLport

open
nobody
None
5
2004-04-13
2004-04-13
Anonymous
No

When compiling MASkinG .75 on Microsoft Visual Studio
.NET 7.1 (a.k.a. 2003) and STLport 4.6.2
(www.stlport.org), I'm getting some strange name
collision errors. All is fine (albeit a few warnings)
when not using STLport (but built-in STL library)

c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\stlport\stl\_vector.h(333) : error
C2668: 'std::_Construct' : ambiguous call to overloaded
function
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory(40): could be 'void
std::_Construct<_Tp,_Tp>(_T1 *,const _T2 &)' [found
using argument-dependent lookup]
with
[
_Tp=_STL::string,
_T1=_STL::string,
_T2=_STL::string
]
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\stlport\stl\_construct.h(93): or
'void _STL::_Construct<_Tp,_Tp>(_T1 *,const _T2 &)'
with
[
_Tp=_STL::string,
_T1=_STL::string,
_T2=_STL::string
]
while trying to match the argument list
'(_STL::string *, const _STL::string)'
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\stlport\stl\_vector.h(331) : while
compiling class-template member function 'void
_STL::vector<_Tp>::push_back(const _Tp &)'
with
[
_Tp=_STL::string
]

c:\conquest\MASkinG-0.75\MASkinG\include\MASkinG\textarea.h(24)
see reference to class template instantiation
'_STL::vector<_Tp>' being compiled
with
[
_Tp=_STL::string
]

Discussion


Log in to post a comment.

MongoDB Logo MongoDB