私はブーストスピリットを学ぶことに決め、ここでルックを勉強し始めました。しかし、最初の例calc1.cppが私のコンピューターでコンパイルされておらず、次のエラーメッセージが表示されるため、私はがっかりしています。
calc1.cpp: In constructor ‘client::calculator<Iterator>::calculator()’:
calc1.cpp:43:13: error: ‘uint_type’ is not a member of ‘client::qi’
calc1.cpp:43:27: error: expected ‘;’ before ‘uint_’
calc1.cpp:60:17: error: ‘uint_’ was not declared in this scope
calc1.cpp:60:17: note: suggested alternatives:
/usr/include/boost/spirit/home/support/common_terminals.hpp:134:1: note: ‘boost::spirit::uint_’
/usr/include/boost/spirit/home/support/common_terminals.hpp:134:1: note: ‘boost::spirit::tag::uint_’
/usr/include/boost/spirit/home/support/common_terminals.hpp:134:1: note: ‘boost::spirit::uint_’
このような行を追加しましたが、これは解決策ではありません。
#include <boost/spirit/home/support/common_terminals.hpp>
私は何をすべきか?前もって感謝します。