boost::lexical_cast gibt fehler unter Qt und nicht in VS2010
Verfasst: 24. Juni 2012 13:13
Hallo,
ich bin gerade dabei den Code einer Consolenanwendung die ich in VS2010exp geschrieben habe in den Qt Creator rüberzuschaufeln um dort eine widget basierte Anwendung zu erstellen. Im code verwende ich oft boost::lexical_cast. Unter VS läuft das ohne Probleme. In Qt (ich verwende den VS compiler) erhalte ich folgende Fehlermeldung (ohne bezug auf eine besondere Zeile im code):
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1116: error: C2535: 'bool boost::detail::lexical_stream_limited_src<CharT,Base,Traits>::operator >>(unsigned short &)' : member function already defined or declared
with
[
CharT=char_type,
Base=base,
Traits=traits
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:993: see declaration of 'boost::detail::lexical_stream_limited_src<CharT,Base,Traits>::operator >>'
with
[
CharT=char_type,
Base=base,
Traits=traits
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1524: see reference to class template instantiation 'boost::detail::lexical_stream_limited_src<CharT,Base,Traits>' being compiled
with
[
CharT=char_type,
Base=base,
Traits=traits
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1653: see reference to function template instantiation 'Target boost::detail::lexical_cast<Target,src,false,char_type>(const std::basic_string<_Elem,_Traits,_Ax> &,CharT *,size_t)' being compiled
with
[
Target=float,
_Elem=wchar_t,
_Traits=std::char_traits<wchar_t>,
_Ax=std::allocator<wchar_t>,
CharT=char_type
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1641: while compiling class template member function 'float boost::detail::lexical_cast_do_cast<Target,Source>::lexical_cast_impl(const Source &)'
with
[
Target=float,
Source=src
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1813: see reference to class template instantiation 'boost::detail::lexical_cast_do_cast<Target,Source>' being compiled
with
[
Target=float,
Source=src
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1813: see reference to class template instantiation 'boost::detail::lexical_cast_do_cast<Target,Source>' being compiled
with
[
Target=float,
Source=src
]
Wo liegt hier der Hund begraben?
Grüße
ich bin gerade dabei den Code einer Consolenanwendung die ich in VS2010exp geschrieben habe in den Qt Creator rüberzuschaufeln um dort eine widget basierte Anwendung zu erstellen. Im code verwende ich oft boost::lexical_cast. Unter VS läuft das ohne Probleme. In Qt (ich verwende den VS compiler) erhalte ich folgende Fehlermeldung (ohne bezug auf eine besondere Zeile im code):
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1116: error: C2535: 'bool boost::detail::lexical_stream_limited_src<CharT,Base,Traits>::operator >>(unsigned short &)' : member function already defined or declared
with
[
CharT=char_type,
Base=base,
Traits=traits
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:993: see declaration of 'boost::detail::lexical_stream_limited_src<CharT,Base,Traits>::operator >>'
with
[
CharT=char_type,
Base=base,
Traits=traits
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1524: see reference to class template instantiation 'boost::detail::lexical_stream_limited_src<CharT,Base,Traits>' being compiled
with
[
CharT=char_type,
Base=base,
Traits=traits
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1653: see reference to function template instantiation 'Target boost::detail::lexical_cast<Target,src,false,char_type>(const std::basic_string<_Elem,_Traits,_Ax> &,CharT *,size_t)' being compiled
with
[
Target=float,
_Elem=wchar_t,
_Traits=std::char_traits<wchar_t>,
_Ax=std::allocator<wchar_t>,
CharT=char_type
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1641: while compiling class template member function 'float boost::detail::lexical_cast_do_cast<Target,Source>::lexical_cast_impl(const Source &)'
with
[
Target=float,
Source=src
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1813: see reference to class template instantiation 'boost::detail::lexical_cast_do_cast<Target,Source>' being compiled
with
[
Target=float,
Source=src
]
c:\Program\boost\boost_1_47\boost\lexical_cast.hpp:1813: see reference to class template instantiation 'boost::detail::lexical_cast_do_cast<Target,Source>' being compiled
with
[
Target=float,
Source=src
]
Wo liegt hier der Hund begraben?
Grüße