`memset' was not declared in this scope

12884阅读 0评论2010-02-09 mystérieux
分类:LINUX

这是在编译 scim-tables-0.5.7 的时候给的中断提示:

scim_generic_table.h: In constructor `GenericTableContent::CharBitMask::CharBitMask()':
scim_generic_table.h:374: error: `memset' was not declared in this scope
scim_generic_table.h: In member function `void GenericTableContent::CharBitMask::clear()':
scim_generic_table.h:386: error: `memset' was not declared in this scope
scim_generic_table.h: In copy constructor `GenericTableContent::KeyBitMask::KeyBitMask(const GenericTableContent::KeyBitMask&)':
scim_generic_table.h:401: error: `memcpy' was not declared in this scope

google了一下,找到了办法,在src/scim_generic_table.h中的#include加上一行:
#include
再编译,就通过了。
上一篇:autoconf.h does not exist
下一篇:nvidia: Unable to determine the version of ...