|
系统:FC9
编译器:gcc-4.3.0
1,运行 ./configure --disable-spell --disable-gnome-support --disable-gucharmap --disable-espeak --disable-festival,通过。
2,make,出现以下错误:g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT data.o -MD -MP -MF .deps/data.Tpo -c -o data.o data.cpp
data.cpp: In member function ‘gchar* DictBase::GetWordData(guint32, guint32)’:
data.cpp:108: error: ‘strlen’ was not declared in this scope
data.cpp:109: error: ‘memcpy’ was not declared in this scope
data.cpp:147: error: ‘memcpy’ was not declared in this scope
data.cpp:170: error: ‘memcpy’ was not declared in this scope
data.cpp:177: error: ‘memcpy’ was not declared in this scope
data.cpp: In member function ‘bool DictBase::SearchData(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, guint32, guint32, gchar*)’:
data.cpp:220: error: ‘strlen’ was not declared in this scope
data.cpp:227: error: ‘strlen’ was not declared in this scope
data.cpp:275: error: ‘strstr’ was not declared in this scope
data.cpp:282: error: ‘strlen’ was not declared in this scope
make[3]: *** [data.o] Error 1 不知道是哪里出现了问题,请教各位,谢谢! |
|