在ubuntu14下編譯svgpp 的test程式是報錯:
/home/jiantang/download/svgpp-master/src/test/../../include/svgpp/policy/error.hpp:112:99: error: expected ‘;’ at end of member declaration
/home/jiantang/download/svgpp-master/src/test/../../include/svgpp/policy/error.hpp:136:98: error: declaration of ‘operator=’ as parameter
BOOST_DELETED_FUNCTION(unknown_css_property_error& operator= (unknown_css_property_error const&))
^
/home/jiantang/download/svgpp-master/src/test/../../include/svgpp/policy/error.hpp:136:99: error: ISO C++ forbids declaration of ‘BOOST_DELETED_FUNCTION’ with no type [-fpermissive]
BOOST_DELETED_FUNCTION(unknown_css_property_error& operator= (unknown_css_property_error const&))
^
/home/jiantang/download/svgpp-master/src/test/../../include/svgpp/policy/error.hpp:136:99: error: expected ‘;’ at end of member declaration
/home/jiantang/download/svgpp-master/src/test/../../include/svgpp/policy/error.hpp:156:114: error: declaration of ‘operator=’ as parameter
BOOST_DELETED_FUNCTION(required_attribute_not_found_error& operator= (required_attribute_not_found_error const&))
^
/home/jiantang/download/svgpp-master/src/test/../../include/svgpp/policy/error.hpp:156:115: error: ISO C++ forbids declaration of ‘BOOST_DELETED_FUNCTION’ with no type [-fpermissive]
BOOST_DELETED_FUNCTION(required_attribute_not_found_error& operator= (required_attribute_not_found_error const&))
于是我手動指定編譯某個檔案,并連接boost庫:g++ full_parse_main.cpp -lboost_system,仍然報錯
BOOST_DELETED_FUNCTION(bind_context_parameters_wrapper& operator= (bind_context_parameters_wrapper const&))
^
/usr/include/svgpp/detail/adapt_context.hpp:71:106: error: declaration of ‘operator=’ as parameter
BOOST_DELETED_FUNCTION(adapted_policy_context_wrapper& operator= (adapted_policy_context_wrapper const&))
^
/usr/include/svgpp/detail/adapt_context.hpp:71:107: error: expected ‘;’ at end of member declaration
BOOST_DELETED_FUNCTION(adapted_policy_context_wrapper& operator= (adapted_policy_context_wrapper const&))
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/78969.html
標籤:應用程序開發區
上一篇:linux信號問題
