2013-04-19 4 views
0

우분투의 Intel 컴파일러 icpc로 부스트를 사용하려고합니다. 내 관리자가 this webpage에서 패키지를 설치했습니다. 나는 다음과 같이 컴파일하는 basic example from the Boost's webpage을 실행하려면 지금 시도하고있다 :우분투에서 부스트로 Intel 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 ++에서 OK로 작업하면서 간단하게 다음을 작성하십시오.

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

당신이 저를 도울 수 있다면 정말 감사 할 것입니다. 건배!

답변

관련 문제