这个小问题每次都折腾一下,还是记录下来靠谱。
I downloaded and tried compiling mysql++-3.1.0. I am receiving the
following 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.cpp
In 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 type
Paul
Looks like this has been fixed in the Trunk - you can add a "include
<stddef.h> to lib/refcounted.h
Add a #include <cstring> to ssx/genv2.cpp
That should get your compile working
本文解决了在编译 mysql++-3.1.0 时遇到的关于 'size_t' 类型未定义的问题。通过在 lib/refcounted.h 中加入 <stddef.h> 头文件,以及在 ssx/genv2.cpp 中添加 <cstring> 头文件,成功解决了编译问题。
3143

被折叠的 条评论
为什么被折叠?



