[C++-sig] V2 and icc 5.0 for Linux

David Abrahams david.abrahams at rcn.com
Wed Apr 10 17:20:55 CEST 2002


----- Original Message -----
From: "Peter Bienstman" <pbienst at MIT.EDU>
To: <c++-sig at python.org>
Sent: Wednesday, April 10, 2002 10:02 AM
Subject: [C++-sig] V2 and icc 5.0 for Linux


> Is the Intel Compiler V5 for Linux supported with BPL V2?

> The tests seem
> to compile fine, but for my own project, I get tons of errors like
this:
> (Unfortunately, it's doesn't give me a line number in my own code, so
> it's hard to distill a test case)

Hmm, I've been testing it with Intel 5 for Windows; I haven't installed
Intel 5 on my Linux box yet. However, if as you say all the test cases
compile fine, I doubt that would make much difference. If you have any
reproducible case (even a big one) it might help. You might also ask
Peter Dimov if he's seen issues with bind and this compiler.

Just out of curiosity, do you have a template called "arg" defined
somewhere? It's possible a bug in the compiler causes it to collide with
boost::arg<>.

-Dave

------

BTW: gcc worked fine

"/home/pbienst/boost_cvs/boost/boost/bind.hpp", line 298: error: "arg"
is ambiguous
      A2 operator[] (arg<2>) const { return a2_; }
                     ^
          detected during:
            instantiation of class "boost::_bi::list4<A1, A2, A3, A4>
[with A1=boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B1,
A2=boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B2,
A3=boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B3,
A4=boost::_bi::list_av_4<void (*)(Real={double}),
                      boost::arg<1>, boost::arg<2>,
boost::python::default_call_policies>::B4]" at line 157 of
"/home/pbienst/boost_cvs/boost/boost/bind/bind_template.hpp"
            instantiation of class "boost::_bi::bind_t<R, F, L> [with
R=PyObject *, F=boost::python::detail::caller,
L=boost::_bi::list4<boost::_bi::list_av_4<void (*)(Real={double}),
boost::arg<1>, boost::arg<2>, boost::python::default_call_policies>::B1,
boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B2,
boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B3,
                      boost::_bi::list_av_4<void (*)(Real={double}),
boost::arg<1>, boost::arg<2>,
boost::python::default_call_policies>::B4>]" at line 1171
            instantiation of "boost::_bi::bind_t<R, F,
boost::_bi::list_av_4<A1, A2, A3, A4>::type>
boost::bind<R,F,A1,A2,A3,A4>(F, A1, A2, A3, A4) [with R=PyObject *,
F=boost::python::detail::caller, A1=void (*)(Real={double}),
A2=boost::arg<1>, A3=boost::arg<2>,
A4=boost::python::default_call_policies]" at line 25 of
"/home/pbienst/boost_cvs/boost/boost/python/make_function.hpp"
            instantiation of "boost::python::objects::function
*boost::python::make_function(F) [with F=void (*)(Real={double})]" at
line 41 of "/home/pbienst/boost_cvs/boost/boost/python/module.hpp"
            instantiation of "boost::python::module
&boost::python::module::def(const char *, Fn) [with Fn=void
(*)(Real={double})]"

"/home/pbienst/boost_cvs/boost/boost/bind.hpp", line 298: error: cannot
overload functions distinguished by return type alone
      A2 operator[] (arg<2>) const { return a2_; }
         ^
          detected during:
            instantiation of class "boost::_bi::list4<A1, A2, A3, A4>
[with A1=boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B1,
A2=boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B2,
A3=boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B3,
A4=boost::_bi::list_av_4<void (*)(Real={double}),
                      boost::arg<1>, boost::arg<2>,
boost::python::default_call_policies>::B4]" at line 157 of
"/home/pbienst/boost_cvs/boost/boost/bind/bind_template.hpp"
            instantiation of class "boost::_bi::bind_t<R, F, L> [with
R=PyObject *, F=boost::python::detail::caller,
L=boost::_bi::list4<boost::_bi::list_av_4<void (*)(Real={double}),
boost::arg<1>, boost::arg<2>, boost::python::default_call_policies>::B1,
boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B2,
boost::_bi::list_av_4<void (*)(Real={double}), boost::arg<1>,
boost::arg<2>, boost::python::default_call_policies>::B3,
                      boost::_bi::list_av_4<void (*)(Real={double}),
boost::arg<1>, boost::arg<2>,
boost::python::default_call_policies>::B4>]" at line 1171
            instantiation of "boost::_bi::bind_t<R, F,
boost::_bi::list_av_4<A1, A2, A3, A4>::type>
boost::bind<R,F,A1,A2,A3,A4>(F, A1, A2, A3, A4) [with R=PyObject *,
F=boost::python::detail::caller, A1=void (*)(Real={double}),
A2=boost::arg<1>, A3=boost::arg<2>,
A4=boost::python::default_call_policies]" at line 25 of
"/home/pbienst/boost_cvs/boost/boost/python/make_function.hpp"
            instantiation of "boost::python::objects::function
*boost::python::make_function(F) [with F=void (*)(Real={double})]" at
line 41 of "/home/pbienst/boost_cvs/boost/boost/python/module.hpp"
            instantiation of "boost::python::module
&boost::python::module::def(const char *, Fn) [with Fn=void
(*)(Real={double})]"










More information about the Cplusplus-sig mailing list