在包含自 db_exception.cpp:22 的文件中:
db_interface_mysql.h:32:25: 错误:mysql/mysql.h:没有那个文件或目录
db_exception.cpp:24:32: 错误:mysql/mysqld_error.h:没有那个文件或目录
db_exception.cpp:25:26: 错误:mysql/errmsg.h:没有那个文件或目录
In file included from db_exception.cpp:22:
db_interface_mysql.h:63: 错误:‘enum_field_types’没有命名一个类型
db_interface_mysql.h:127: 错误:ISO C++ 不允许声明无类型的‘MYSQL’
db_interface_mysql.h:127: 错误:expected ‘;’ before ‘*’ token
db_interface_mysql.h:129: 错误:expected ‘;’ before ‘void’
db_interface_mysql.h:131: 错误:‘my_ulonglong’没有命名一个类型
db_interface_mysql.h:133: 错误:‘my_ulonglong’没有命名一个类型
db_interface_mysql.h:197: 错误:ISO C++ 不允许声明无类型的‘MYSQL’
db_interface_mysql.h:197: 错误:expected ‘;’ before ‘*’ token
db_interface_mysql.h: In member function ‘bool KBEngine::DBInterfaceMysql::ping()’:
db_interface_mysql.h:85: 错误:‘pMysql_’在此作用域中尚未声明
db_interface_mysql.h:85: 错误:‘mysql_ping’在此作用域中尚未声明
db_interface_mysql.h: In member function ‘const char* KBEngine::DBInterfaceMysql::info()’:
db_interface_mysql.h:135: 错误:‘pMysql_’在此作用域中尚未声明
db_interface_mysql.h:135: 错误:‘mysql_info’在此作用域中尚未声明
db_interface_mysql.h: In member function ‘const char* KBEngine::DBInterfaceMysql::getLastError()’:
db_interface_mysql.h:139: 错误:‘pMysql_’在此作用域中尚未声明
db_interface_mysql.h:142: 错误:‘pMysql_’在此作用域中尚未声明
db_interface_mysql.h:142: 错误:‘mysql_error’在此作用域中尚未声明
db_interface_mysql.h: In member function ‘unsigned int KBEngine::DBInterfaceMysql::getLastErrorNum()’:
db_interface_mysql.h:145: 错误:‘pMysql_’在此作用域中尚未声明
db_interface_mysql.h:145: 错误:‘mysql_errno’在此作用域中尚未声明
db_exception.cpp: In constructor ‘KBEngine::DBException::DBException(KBEngine::DBInterface*)’:
db_exception.cpp:31: 错误:‘class KBEngine::DBInterfaceMysql’没有名为‘mysql’的成员
db_exception.cpp:31: 错误:‘mysql_error’在此作用域中尚未声明
db_exception.cpp:32: 错误:‘class KBEngine::DBInterfaceMysql’没有名为‘mysql’的成员
db_exception.cpp:32: 错误:‘mysql_errno’在此作用域中尚未声明
db_exception.cpp: In member function ‘bool KBEngine::DBException::shouldRetry() const’:
db_exception.cpp:44: 错误:‘ER_LOCK_DEADLOCK’在此作用域中尚未声明
db_exception.cpp:45: 错误:‘ER_LOCK_WAIT_TIMEOUT’在此作用域中尚未声明
db_exception.cpp: In member function ‘bool KBEngine::DBException::isLostConnection() const’:
db_exception.cpp:51: 错误:‘CR_SERVER_GONE_ERROR’在此作用域中尚未声明
db_exception.cpp:52: 错误:‘CR_SERVER_LOST’在此作用域中尚未声明
make[2]: *** [Hybrid64/db_exception.o] 错误 1
make[2]: Leaving directory `/server/kbe/kbengine-1.16/kbe/src/lib/db_mysql'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/server/kbe/kbengine-1.16/kbe/src/lib'
make: *** [all] 错误 2
[root@qqserver src]# ls
build client kbengine_vs140.sln lib libs Makefile server
[root@qqserver src]# cd /server/kbe/kbengine-1.16/kbe/src/lib/db_mysql
[root@qqserver db_mysql]# ls
common.cpp db_mysql.vcxproj entity_table_mysql.h ReadMe.txt
common.h db_mysql.vcxproj.filters entity_table_mysql.inl remove_entity_helper.h
db_context.h db_transaction.cpp Hybrid64 sqlstatement.h
db_exception.cpp db_transaction.h kbe_table_mysql.cpp write_entity_helper.h
db_exception.h entity_sqlstatement_mapping.cpp kbe_table_mysql.h
db_interface_mysql.cpp entity_sqlstatement_mapping.h Makefile
db_interface_mysql.h entity_table_mysql.cpp read_entity_helper.h
[root@qqserver db_mysql]#