|
Boost Users : |
From: storri_at_[hidden]
Date: 2007-05-11 10:02:40
Are there any special compiler flags that I need to use to build a C++
project using boost with Visual Studio 2005? I am getting a C2220 compiler
error that an object cannot be created:
1>------ Build started: Project: data_containers, Configuration: Debug
Win32 ------
1>Compiling...
1>Memory_Map.cpp
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(124) : error
C2220: warning treated as error - no 'object' file generated
1> C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(54) :
see reference to class template instantiation
'boost::io::detail::group4<T1,T2,T3,T4>' being compiled
1> with
1> [
1> T1=std::ios_base &(__cdecl *)(std::ios_base &),
1> T2=std::_Smanip<std::ios_base::fmtflags>,
1> T3=std::_Fillobj<char>,
1> T4=const boost::uint16_t &
1> ]
1> .\Memory_Map.cpp(341) : see reference to class template
instantiation 'boost::io::detail::group1<T1>' being compiled
1> with
1> [
1> T1=boost::io::detail::group4<std::ios_base &(__cdecl
*)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>
1> ]
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(124) :
warning C4512: 'boost::io::detail::group4<T1,T2,T3,T4>' : assignment
operator could not be generated
1> with
1> [
1> T1=std::ios_base &(__cdecl *)(std::ios_base &),
1> T2=std::_Smanip<std::ios_base::fmtflags>,
1> T3=std::_Fillobj<char>,
1> T4=const boost::uint16_t &
1> ]
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(58) : warning
C4512: 'boost::io::detail::group1<T1>' : assignment operator could not be
generated
1> with
1> [
1> T1=boost::io::detail::group4<std::ios_base &(__cdecl
*)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>
1> ]
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(58) : warning
C4512: 'boost::io::detail::group1<T1>' : assignment operator could not be
generated
1> with
1> [
1> T1=const boost::uint16_t &
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(103) : see reference
to class template instantiation 'boost::io::detail::group1<T1>' being
compiled
1> with
1> [
1> T1=const boost::uint16_t &
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(150) : see reference
to function template instantiation 'void
boost::io::detail::put_last<char,std::char_traits<char>,boost::io::detail::group4<T1,T2,T3,T4>>(std::basic_ostream<_Elem,_Traits>
&,const boost::io::detail::group1<boost::io::detail::group4<T1,T2,T3,T4>>
&)' being compiled
1> with
1> [
1> T1=std::ios_base &(__cdecl *)(std::ios_base &),
1> T2=std::_Smanip<std::ios_base::fmtflags>,
1> T3=std::_Fillobj<char>,
1> T4=const boost::uint16_t &,
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(242) : see reference
to function template instantiation 'void
boost::io::detail::put<Ch,Tr,Alloc,T>(T,const
boost::io::detail::format_item<Ch,Tr,Alloc>
&,std::basic_string<_Elem,_Traits,_Ax>
&,boost::io::basic_altstringbuf<Ch,Tr,Alloc> &,boost::io::detail::locale_t
*)' being compiled
1> with
1> [
1> Ch=char,
1> Tr=std::char_traits<char>,
1> Alloc=std::allocator<char>,
1> T=const
boost::io::detail::group1<boost::io::detail::group4<std::ios_base
&(__cdecl *)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>> &,
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(251) : see reference
to function template instantiation 'void
boost::io::detail::distribute<Ch,Tr,Alloc,T>(boost::basic_format<Ch> &,T)'
being compiled
1> with
1> [
1> Ch=char,
1> Tr=std::char_traits<char>,
1> Alloc=std::allocator<char>,
1> T=const
boost::io::detail::group1<boost::io::detail::group4<std::ios_base
&(__cdecl *)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>> &
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/format_class.hpp(64) : see reference
to function template instantiation 'boost::basic_format<Ch>
&boost::io::detail::feed<char,Tr,Alloc,const T&>(boost::basic_format<Ch>
&,const boost::io::detail::group1<T1>)' being compiled
1> with
1> [
1> Ch=char,
1> Tr=std::char_traits<char>,
1> Alloc=std::allocator<char>,
1>
T=boost::io::detail::group1<boost::io::detail::group4<std::ios_base
&(__cdecl *)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>>,
1> T1=boost::io::detail::group4<std::ios_base &(__cdecl
*)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>
1> ]
1> .\Memory_Map.cpp(341) : see reference to function template
instantiation 'boost::basic_format<Ch> &boost::basic_format<Ch>::operator
%<boost::io::detail::group1<T1>>(const T &)' being compiled
1> with
1> [
1> Ch=char,
1> T1=boost::io::detail::group4<std::ios_base &(__cdecl
*)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>,
1>
T=boost::io::detail::group1<boost::io::detail::group4<std::ios_base
&(__cdecl *)(std::ios_base
&),std::_Smanip<std::ios_base::fmtflags>,std::_Fillobj<char>,const
boost::uint16_t &>>
1> ]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net