I a moving servers and this new one is an Ubuntu 14.04.1 LTS x86. I installed all the libs (at last I think that I did) and get this error when compiling:
Code: Select all
dsgame-sql.o: In function `Sql_Malloc()':
/home/guillaume/Vejiitasei/src/common/sql.cpp:76: undefined reference to `mysql_init'
dsgame-sql.o: In function `Sql_Connect(Sql_t*, char const*, char const*, char const*, unsigned short, char const*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:96: undefined reference to `mysql_real_connect'
/home/guillaume/Vejiitasei/src/common/sql.cpp:98: undefined reference to `mysql_error'
dsgame-sql.o: In function `Sql_SetEncoding(Sql_t*, char const*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:172: undefined reference to `mysql_set_character_set'
dsgame-sql.o: In function `Sql_Ping(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:187: undefined reference to `mysql_ping'
dsgame-sql.o: In function `Sql_NextRow(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:408: undefined reference to `mysql_fetch_row'
/home/guillaume/Vejiitasei/src/common/sql.cpp:411: undefined reference to `mysql_fetch_lengths'
/home/guillaume/Vejiitasei/src/common/sql.cpp:415: undefined reference to `mysql_errno'
dsgame-sql.o: In function `Sql_NumColumns':
/home/guillaume/Vejiitasei/src/common/sql.cpp:378: undefined reference to `mysql_num_fields'
/home/guillaume/Vejiitasei/src/common/sql.cpp:378: undefined reference to `mysql_num_fields'
/home/guillaume/Vejiitasei/src/common/sql.cpp:378: undefined reference to `mysql_num_fields'
/home/guillaume/Vejiitasei/src/common/sql.cpp:378: undefined reference to `mysql_num_fields'
/home/guillaume/Vejiitasei/src/common/sql.cpp:378: undefined reference to `mysql_num_fields'
dsgame-sql.o: In function `Sql_FreeResult(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:536: undefined reference to `mysql_free_result'
dsgame-sql.o: In function `Sql_QueryV(Sql_t*, char const*, char*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:295: undefined reference to `mysql_real_query'
/home/guillaume/Vejiitasei/src/common/sql.cpp:300: undefined reference to `mysql_store_result'
/home/guillaume/Vejiitasei/src/common/sql.cpp:301: undefined reference to `mysql_errno'
/home/guillaume/Vejiitasei/src/common/sql.cpp:303: undefined reference to `mysql_error'
dsgame-sql.o: In function `Sql_QueryStr(Sql_t*, char const*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:323: undefined reference to `mysql_real_query'
/home/guillaume/Vejiitasei/src/common/sql.cpp:328: undefined reference to `mysql_store_result'
/home/guillaume/Vejiitasei/src/common/sql.cpp:329: undefined reference to `mysql_errno'
/home/guillaume/Vejiitasei/src/common/sql.cpp:331: undefined reference to `mysql_error'
dsgame-sql.o: In function `Sql_Free(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:571: undefined reference to `mysql_close'
dsgame-sql.o: In function `Sql_NumRows':
/home/guillaume/Vejiitasei/src/common/sql.cpp:393: undefined reference to `mysql_num_rows'
dsgame-sql.o: In function `Sql_TransactionCommit(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:624: undefined reference to `mysql_commit'
dsgame-sql.o: In function `Sql_EscapeStringLen(Sql_t*, char*, char const*, unsigned int)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:247: undefined reference to `mysql_real_escape_string'
/home/guillaume/Vejiitasei/src/common/sql.cpp:249: undefined reference to `mysql_escape_string'
dsgame-sql.o: In function `Sql_AffectedRows(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:347: undefined reference to `mysql_affected_rows'
dsgame-sql.o: In function `Sql_LastInsertId(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:363: undefined reference to `mysql_insert_id'
dsgame-sql.o: In function `Sql_NumColumns(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:378: undefined reference to `mysql_num_fields'
dsgame-sql.o: In function `Sql_NumRows(Sql_t*)':
/home/guillaume/Vejiitasei/src/common/sql.cpp:393: undefined reference to `mysql_num_rows'
collect2: error: ld returned 1 exit status
make: *** [dsgame] Error 1