Jump to content

Errors compiling server source (AsyncSQL.cpp)


Recommended Posts

Hi! I'm trying to compile my server source but I'm getting these errors!

Spoiler

In file included from AsyncSQL.cpp:8:
AsyncSQL.h:11:25: error: mysql/mysql.h: No such file or directory
AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
In file included from AsyncSQL.cpp:8:
AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
AsyncSQL.h:35: error: expected ';' before '*' token
AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
AsyncSQL.h: At global scope:
AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
AsyncSQL.h:98: error: expected ';' before '*' token
AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
AsyncSQL.h: In member function 'void _SQLMsg::Store()':
AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
AsyncSQL.h: At global scope:
AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
AsyncSQL.h:139: error: expected ';' before '*' token
AsyncSQL.h:165: error: 'MYSQL' does not name a type
AsyncSQL.cpp: In constructor 'CAsyncSQL::CAsyncSQL()':
AsyncSQL.cpp:30: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::Destroy()':
AsyncSQL.cpp:44: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:47: error: 'mysql_close' was not declared in this scope
AsyncSQL.cpp: In member function 'bool CAsyncSQL::QueryLocaleSet()':
AsyncSQL.cpp:103: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:103: error: 'mysql_set_character_set' was not declared in this scope
AsyncSQL.cpp:105: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp:105: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp: In member function 'bool CAsyncSQL::Connect()':
AsyncSQL.cpp:116: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:116: error: 'mysql_init' was not declared in this scope
AsyncSQL.cpp:128: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:128: error: 'MYSQL_SET_CHARSET_NAME' was not declared in this scope
AsyncSQL.cpp:128: error: 'mysql_options' was not declared in this scope
AsyncSQL.cpp:130: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:134: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:134: error: 'CLIENT_MULTI_STATEMENTS' was not declared in this scope
AsyncSQL.cpp:134: error: 'mysql_real_connect' was not declared in this scope
AsyncSQL.cpp:136: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:140: error: 'my_bool' was not declared in this scope
AsyncSQL.cpp:140: error: expected `;' before 'reconnect'
AsyncSQL.cpp:142: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:142: error: 'MYSQL_OPT_RECONNECT' was not declared in this scope
AsyncSQL.cpp:142: error: 'reconnect' was not declared in this scope
AsyncSQL.cpp:142: error: 'mysql_options' was not declared in this scope
AsyncSQL.cpp:143: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:145: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:152: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp: In member function 'SQLMsg* CAsyncSQL::DirectQuery(const char*)':
AsyncSQL.cpp:250: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:250: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp:259: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
AsyncSQL.cpp:259: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:263: error: 'mysql_real_query' was not declared in this scope
AsyncSQL.cpp:269: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:272: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::AsyncQuery(const char*)':
AsyncSQL.cpp:283: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
AsyncSQL.cpp:283: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::ReturnQuery(const char*, void*)':
AsyncSQL.cpp:294: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
AsyncSQL.cpp:294: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp: In member function 'void CAsyncSQL::ChildLoop()':
AsyncSQL.cpp:554: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:554: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp:561: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:561: error: 'mysql_real_query' was not declared in this scope
AsyncSQL.cpp:563: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp:565: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:570: error: 'CR_SOCKET_CREATE_ERROR' was not declared in this scope
AsyncSQL.cpp:571: error: 'CR_CONNECTION_ERROR' was not declared in this scope
AsyncSQL.cpp:572: error: 'CR_IPSOCK_ERROR' was not declared in this scope
AsyncSQL.cpp:573: error: 'CR_UNKNOWN_HOST' was not declared in this scope
AsyncSQL.cpp:574: error: 'CR_SERVER_GONE_ERROR' was not declared in this scope
AsyncSQL.cpp:575: error: 'CR_CONN_HOST_ERROR' was not declared in this scope
AsyncSQL.cpp:576: error: 'ER_NOT_KEYFILE' was not declared in this scope
AsyncSQL.cpp:577: error: 'ER_CRASHED_ON_USAGE' was not declared in this scope
AsyncSQL.cpp:578: error: 'ER_CANT_OPEN_FILE' was not declared in this scope
AsyncSQL.cpp:579: error: 'ER_HOST_NOT_PRIVILEGED' was not declared in this scope
AsyncSQL.cpp:580: error: 'ER_HOST_IS_BLOCKED' was not declared in this scope
AsyncSQL.cpp:581: error: 'ER_PASSWORD_NOT_ALLOWED' was not declared in this scope
AsyncSQL.cpp:582: error: 'ER_PASSWORD_NO_MATCH' was not declared in this scope
AsyncSQL.cpp:583: error: 'ER_CANT_CREATE_THREAD' was not declared in this scope
AsyncSQL.cpp:584: error: 'ER_INVALID_USE_OF_NULL' was not declared in this scope
AsyncSQL.cpp:616: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:616: error: 'mysql_thread_id' was not declared in this scope
AsyncSQL.cpp:623: error: 'm_hDB' was not declared in this scope
AsyncSQL.cpp:623: error: 'mysql_real_query' was not declared in this scope
AsyncSQL.cpp:625: error: 'mysql_errno' was not declared in this scope
AsyncSQL.cpp:627: error: 'mysql_error' was not declared in this scope
AsyncSQL.cpp:632: error: 'CR_SOCKET_CREATE_ERROR' was not declared in this scope
AsyncSQL.cpp:633: error: 'CR_CONNECTION_ERROR' was not declared in this scope
AsyncSQL.cpp:634: error: 'CR_IPSOCK_ERROR' was not declared in this scope
AsyncSQL.cpp:635: error: 'CR_UNKNOWN_HOST' was not declared in this scope
AsyncSQL.cpp:636: error: 'CR_SERVER_GONE_ERROR' was not declared in this scope
AsyncSQL.cpp:637: error: 'CR_CONN_HOST_ERROR' was not declared in this scope
AsyncSQL.cpp:638: error: 'ER_NOT_KEYFILE' was not declared in this scope
AsyncSQL.cpp:639: error: 'ER_CRASHED_ON_USAGE' was not declared in this scope
AsyncSQL.cpp:640: error: 'ER_CANT_OPEN_FILE' was not declared in this scope
AsyncSQL.cpp:641: error: 'ER_HOST_NOT_PRIVILEGED' was not declared in this scope
AsyncSQL.cpp:642: error: 'ER_HOST_IS_BLOCKED' was not declared in this scope
AsyncSQL.cpp:643: error: 'ER_PASSWORD_NOT_ALLOWED' was not declared in this scope
AsyncSQL.cpp:644: error: 'ER_PASSWORD_NO_MATCH' was not declared in this scope
AsyncSQL.cpp:645: error: 'ER_CANT_CREATE_THREAD' was not declared in this scope
AsyncSQL.cpp:646: error: 'ER_INVALID_USE_OF_NULL' was not declared in this scope
AsyncSQL.cpp: At global scope:
AsyncSQL.cpp:677: error: expected constructor, destructor, or type conversion before '*' token
AsyncSQL.cpp: In member function 'size_t CAsyncSQL::EscapeString(char*, size_t, const char*, size_t)':
AsyncSQL.cpp:707: error: 'GetSQLHandle' was not declared in this scope
AsyncSQL.cpp:707: error: 'mysql_real_escape_string' was not declared in this scope
gmake[2]: *** [Makefile:37: AsyncSQL.o] Error 1
gmake[2]: Leaving directory '/root/workspace/Poodle/Server/libsql'
gmake[1]: *** [Makefile:21: default] Error 2
gmake[1]: Leaving directory '/root/workspace/Poodle/Server/libsql'
gmake: *** [Makefile:87: all] Error 2
 

 

  • Metin2 Dev 1
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.