библиотека контрактов, сложности использования/сборки примера
От: niXman Ниоткуда https://github.com/niXman
Дата: 06.07.16 14:39
Оценка:
привет.

решил попроовать поюзать сабж.
клонировал, при попытке выполнить необходимые степы, получаю:
nixman@nixman-pc:~/contract$ tools/waf build
Waf: Entering directory `/home/nixman/contract/build'
[ 1/17] cxx: src/contract.cpp -> build/src/contract.cpp.1.o
[ 2/17] cxx: test/classcontract.cpp -> build/test/classcontract.cpp.2.o
[ 3/17] cxx: test/ctorcontract.cpp -> build/test/ctorcontract.cpp.2.o
[ 4/17] cxx: test/derivedcontract.cpp -> build/test/derivedcontract.cpp.2.o
[ 5/17] cxx: test/disableinvariants.cpp -> build/test/disableinvariants.cpp.2.o
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/classcontract.cpp:1:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected unqualified-id before ‘dodo {                                                                     \
     ^
/home/nixman/contract/include/contract/detail/contract_imp.hpp:98:7: error: expected unqualified-id before ‘while’
     } while (0)                                                              \
       ^
In file included from /usr/local/include/boost/test/tools/fpc_tolerance.hpp:19:0,
                 from /usr/local/include/boost/test/tools/fpc_op.hpp:19,
                 from /usr/local/include/boost/test/test_tools.hpp:54,
                 from /usr/local/include/boost/test/unit_test.hpp:18,
                 from ../test/contract_error.hpp:6,
                 from ../test/classcontract.cpp:3:
/usr/local/include/boost/test/tree/decorator.hpp: In member function ‘virtual boost::unit_test::decorator::base_ptr boost::unit_test::decorator::precondition::clone() const’:
/usr/local/include/boost/test/tree/decorator.hpp:253:60: error: expected primary-expression before ‘(’ token
     virtual base_ptr        clone() const { return base_ptr(new precondition( m_precondition )); }
                                                            ^
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/classcontract.cpp:1:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected type-specifier before ‘dodo {                                                                     \
     ^
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/disableinvariants.cpp:2:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected unqualified-id before ‘dodo {                                                                     \
     ^
/home/nixman/contract/include/contract/detail/contract_imp.hpp:98:7: error: expected unqualified-id before ‘while’
     } while (0)                                                              \
       ^
In file included from /usr/local/include/boost/test/tools/fpc_tolerance.hpp:19:0,
                 from /usr/local/include/boost/test/tools/fpc_op.hpp:19,
                 from /usr/local/include/boost/test/test_tools.hpp:54,
                 from /usr/local/include/boost/test/unit_test.hpp:18,
                 from ../test/contract_error.hpp:6,
                 from ../test/disableinvariants.cpp:4:
/usr/local/include/boost/test/tree/decorator.hpp: In member function ‘virtual boost::unit_test::decorator::base_ptr boost::unit_test::decorator::precondition::clone() const’:
/usr/local/include/boost/test/tree/decorator.hpp:253:60: error: expected primary-expression before ‘(’ token
     virtual base_ptr        clone() const { return base_ptr(new precondition( m_precondition )); }
                                                            ^
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/disableinvariants.cpp:2:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected type-specifier before ‘dodo {                                                                     \
     ^
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/ctorcontract.cpp:1:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected unqualified-id before ‘dodo {                                                                     \
     ^
/home/nixman/contract/include/contract/detail/contract_imp.hpp:98:7: error: expected unqualified-id before ‘while’
     } while (0)                                                              \
       ^
In file included from /usr/local/include/boost/test/tools/fpc_tolerance.hpp:19:0,
                 from /usr/local/include/boost/test/tools/fpc_op.hpp:19,
                 from /usr/local/include/boost/test/test_tools.hpp:54,
                 from /usr/local/include/boost/test/unit_test.hpp:18,
                 from ../test/contract_error.hpp:6,
                 from ../test/ctorcontract.cpp:3:
/usr/local/include/boost/test/tree/decorator.hpp: In member function ‘virtual boost::unit_test::decorator::base_ptr boost::unit_test::decorator::precondition::clone() const’:
/usr/local/include/boost/test/tree/decorator.hpp:253:60: error: expected primary-expression before ‘(’ token
     virtual base_ptr        clone() const { return base_ptr(new precondition( m_precondition )); }
                                                            ^
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/ctorcontract.cpp:1:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected type-specifier before ‘dodo {                                                                     \
     ^
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/derivedcontract.cpp:1:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected unqualified-id before ‘dodo {                                                                     \
     ^
/home/nixman/contract/include/contract/detail/contract_imp.hpp:98:7: error: expected unqualified-id before ‘while’
     } while (0)                                                              \
       ^
In file included from /usr/local/include/boost/test/tools/fpc_tolerance.hpp:19:0,
                 from /usr/local/include/boost/test/tools/fpc_op.hpp:19,
                 from /usr/local/include/boost/test/test_tools.hpp:54,
                 from /usr/local/include/boost/test/unit_test.hpp:18,
                 from ../test/contract_error.hpp:6,
                 from ../test/derivedcontract.cpp:3:
/usr/local/include/boost/test/tree/decorator.hpp: In member function ‘virtual boost::unit_test::decorator::base_ptr boost::unit_test::decorator::precondition::clone() const’:
/usr/local/include/boost/test/tree/decorator.hpp:253:60: error: expected primary-expression before ‘(’ token
     virtual base_ptr        clone() const { return base_ptr(new precondition( m_precondition )); }
                                                            ^
In file included from /home/nixman/contract/include/contract/contract.hpp:187:0,
                 from ../test/derivedcontract.cpp:1:
/home/nixman/contract/include/contract/detail/contract_imp.hpp:90:5: error: expected type-specifier before ‘dodo {                                                                     \
     ^
Waf: Leaving directory `/home/nixman/contract/build'


препроцессированный код смотрел, ничего невалидного не вижу.

ЧЯДНТ?
пачка бумаги А4 стОит 2000 р, в ней 500 листов. получается, лист обычной бумаги стОит дороже имперского рубля =)
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.