歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> MySQL++ Gcc 4.6.1 Ubuntu編譯錯誤解決

MySQL++ Gcc 4.6.1 Ubuntu編譯錯誤解決

日期:2017/2/28 15:56:08   编辑:Linux教程

MySQL++ Gcc 4.6.1 Ubuntu編譯錯誤解決記錄。

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