n file included from /usr/include/c++/4.9/bits/postypes.h:40:0,
from /usr/include/c++/4.9/iosfwd:40,
from /usr/include/c++/4.9/ios:38,
from /usr/include/c++/4.9/istream:38,
from /usr/include/c++/4.9/sstream:38,
from /home/--/Desktop/yaml-cpp/src/emitter.cpp:1:
/usr/include/c++/4.9/cwchar:64:11: error: ‘::mbstate_t’ has not been declared
using ::mbstate_t;
^
/usr/include/c++/4.9/cwchar:139:11: error: ‘::wint_t’ has not been declared
using ::wint_t;
^
/usr/include/c++/4.9/cwchar:141:11: error: ‘::btowc’ has not been declared
using ::btowc
答案1
您省略了一#include
两个定义mbstate_t
、win_t
和btowc
结构成员的元素。通过以下操作找出是哪一个:
find /usr/include -type f -print | xargs egrep `mbstate_t|win_t|btowc`