ubuntu上带boost的英特尔icpc编译器错误

ubuntu上带boost的英特尔icpc编译器错误,boost,compiler-errors,icc,Boost,Compiler Errors,Icc,我正试图让Boost在Ubuntu上与英特尔的编译器icpc一起工作。我的管理员从安装包。我现在正在尝试运行,编译如下: icpc -I /usr/include/boost example.cpp -L/usr/lib/ -lboost_regex, 我得到了一堆这种形式的编译器错误: /usr/include/boost/smart_ptr/detail/shared_count.hpp(233): error: copy constructor for class "boost::det

我正试图让Boost在Ubuntu上与英特尔的编译器icpc一起工作。我的管理员从安装包。我现在正在尝试运行,编译如下:

icpc -I /usr/include/boost example.cpp -L/usr/lib/ -lboost_regex,
我得到了一堆这种形式的编译器错误:

/usr/include/boost/smart_ptr/detail/shared_count.hpp(233): error: copy constructor for class "boost::detail::shared_count" may not have a parameter of type "boost::detail::shared_count"
  shared_count(shared_count && r): pi_(r.pi_) // nothrow
/usr/include/boost/smart_ptr/detail/shared_count.hpp(233): error: expected a ")"
  shared_count(shared_count && r): pi_(r.pi_) // nothrow
/usr/include/boost/smart_ptr/detail/shared_count.hpp(233): error: identifier "r" is undefined
  shared_count(shared_count && r): pi_(r.pi_) // nothrow
/usr/include/boost/smart_ptr/detail/shared_count.hpp(340): error: copy constructor for class "boost::detail::weak_count" may not have a parameter of type "boost::detail::weak_count"
  weak_count(weak_count && r): pi_(r.pi_) // nothrow
等等。令人惊讶的是(或不是),这个东西在g++上运行正常,只需写:

g++ example.cpp -o example.out -lboost_regex

如果你能帮我做这件事,我将非常感激。干杯

您发布的链接指向
boost 1.40
,而您遇到的问题似乎是。(请注意