MySQL++ Gcc 4.6.1 Ubuntu编译错误解决


MySQL++ Gcc 4.6.1 Ubuntu编译错误解决记录。

  1. I downloaded and tried compiling mysql++-3.1.0.  I am receiving the  
  2. following error:  
  3.   
  4. src/mysql++-3.1.0/bk-deps g++ -c -o mysqlpp_sql_buffer.o -I. -fPIC -DPIC  
  5. -I/usr/include/mysql -g -O2 ./lib/sql_buffer.cpp  
  6. In file included from ./lib/sql_buffer.h:31:0,  
  7.                  from ./lib/sql_buffer.cpp:26:  
  8. ./lib/refcounted.h:258:2: error: ‘size_t’ does not name a type  
  9. Paul  
  10.   
  11. Looks like this has been fixed in the Trunk - you can add a "include  
  12. <stddef.h> to lib/refcounted.h  
  13.   
  14. Add a #include <cstring> to ssx/genv2.cpp  
  15.   
  16. That should get your compile working  

相关内容