- 论坛徽章:
- 0
|
不对, 我的情况和楼主还不一样呢.
我是用xlC编译的, 报错如下:
"boost/boost/type_traits/is_member_pointer.hpp", line 52.63: 1540-0403 (S) "template <class T, class U> struct boost::is_member_pointer<U T::* const>" is already defined.
"boost/boost/type_traits/is_member_pointer.hpp", line 49.63: 1540-0425 (I) "is_member_pointer<U T::*>" is defined on line 49 of "boost/boost/type_traits/is_member_pointer.hpp".
"boost/boost/type_traits/is_member_pointer.hpp", line 53.63: 1540-0403 (S) "template <class T, class U> struct boost::is_member_pointer<U T::* volatile>" is already defined.
"boost/boost/type_traits/is_member_pointer.hpp", line 49.63: 1540-0425 (I) "is_member_pointer<U T::*>" is defined on line 49 of "boost/boost/type_traits/is_member_pointer.hpp".
"boost/boost/type_traits/is_member_pointer.hpp", line 54.63: 1540-0403 (S) "template <class T, class U> struct boost::is_member_pointer<U T::* const volatile>" is already defined.
"boost/boost/type_traits/is_member_pointer.hpp", line 49.63: 1540-0425 (I) "is_member_pointer<U T::*>" is defined on line 49 of "boost/boost/type_traits/is_member_pointer.hpp".
"boost/boost/lambda/detail/lambda_traits.hpp", line 253.13: 1540-1206 (S) The class template instantiation of "parameter_traits_<boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,const boost::lambda::lambda_functor<boost::lambda::placeholder<1> > >" is ambiguous.
"boost/boost/lambda/detail/lambda_traits.hpp", line 216.8: 1540-1207 (I) The template arguments match "template struct parameter_traits_<lambda_functor<Arg>, Any>".
"boost/boost/lambda/detail/lambda_traits.hpp", line 221.8: 1540-1207 (I) The template arguments match "template struct parameter_traits_<const lambda_functor<Arg>, Any>".
"boost/boost/lambda/detail/lambda_traits.hpp", line 227.8: 1540-1207 (I) The template arguments match "template struct parameter_traits_<volatile lambda_functor<Arg>, Any>".
"boost/boost/lambda/detail/lambda_traits.hpp", line 232.8: 1540-1207 (I) The template arguments match "template struct parameter_traits_<const volatile lambda_functor<Arg>, Any>".
"boost/boost/lambda/detail/lambda_traits.hpp", line 288.11: 1540-0700 (I) The previous message was produced while processing "struct boost::lambda::const_copy_argument<boost::lambda::lambda_functor<boost::lambda::placeholder<1> > >".
kfdev$cc -Iboost/ -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION example.cpp -o example
"boost/boost/type_traits/alignment_of.hpp", line 61.1: 1540-0140 (S) The text "rebind" is unexpected. "alignment_of_rebind" may be undeclared, ambiguous, or may require "typename" qualification.
"boost/boost/type_traits/alignment_of.hpp", line 61.2: 1540-1303 (I) "class alignment_of_rebind" is not visible.
"boost/boost/lambda/detail/lambda_traits.hpp", line 191.26: 1540-0063 (S) The text "boost::reference_wrapper" is unexpected.
"boost/boost/lambda/detail/lambda_traits.hpp", line 196.32: 1540-0063 (S) The text "boost::reference_wrapper" is unexpected.
"boost/boost/lambda/detail/lambda_traits.hpp", line 201.35: 1540-0063 (S) The text "boost::reference_wrapper" is unexpected.
"boost/boost/lambda/detail/lambda_traits.hpp", line 206.41: 1540-0063 (S) The text "boost::reference_wrapper" is unexpected.
"boost/boost/lambda/detail/lambda_traits.hpp", line 434.39: 1540-0064 (S) Syntax error: "(" was expected but ">" was found.
"boost/boost/lambda/detail/lambda_traits.hpp", line 439.26: 1540-0063 (S) The text "reference_wrapper" is unexpected.
"boost/boost/type_traits/remove_reference.hpp", line 42.1: 1540-0140 (S) The text "rebind" is unexpected. "remove_reference_rebind" may be undeclared, ambiguous, or may require "typename" qualification.
"boost/boost/type_traits/remove_reference.hpp", line 42.2: 1540-1303 (I) "class remove_reference_rebind" is not visible.
"boost/boost/lambda/core.hpp", line 69.42: 1540-0274 (S) The name lookup for "free1" did not find a declaration.
"boost/boost/lambda/core.hpp", line 70.42: 1540-0274 (S) The name lookup for "free2" did not find a declaration.
"boost/boost/lambda/core.hpp", line 71.42: 1540-0274 (S) The name lookup for "free3" did not find a declaration.
楼主用的是vacpp, 我也用这个编译器编译一下我的程序试试看. |
|