您的位置:首页 > 数据库 > MySQL

MySQL++ gcc4.6.1 Ubuntu编译错误解决

2011-10-10 17:53 363 查看
这个小问题每次都折腾一下,还是记录下来靠谱。 
I downloaded and tried compiling mysql++-3.1.0.  I am receiving thefollowing error:src/mysql++-3.1.0/bk-deps g++ -c -o mysqlpp_sql_buffer.o -I. -fPIC -DPIC-I/usr/include/mysql -g -O2 ./lib/sql_buffer.cppIn file included from ./lib/sql_buffer.h:31:0,from ./lib/sql_buffer.cpp:26:./lib/refcounted.h:258:2: error: ‘size_t’ does not name a typePaulLooks like this has been fixed in the Trunk - you can add a "include<stddef.h> to lib/refcounted.hAdd a #include <cstring> to ssx/genv2.cppThat should get your compile working
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mysql ubuntu gcc file sql