0
你好我得到這些LNK錯誤,當我嘗試編譯我的MySQL連接代碼錯誤LNK2028:無法解析令牌錯誤
1>main.obj : error LNK2028: unresolved token (0A00027D) "extern "C" struct st_mysql * __stdcall mysql_init(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@Z) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)
1>main.obj : error LNK2028: unresolved token (0A0002B9) "extern "C" struct st_mysql * __stdcall mysql_real_connect(struct st_mysql *,char const *,char const *,char const *,char const *,unsigned int,char const *,unsigned int)" ([email protected]@[email protected]@[email protected]@Z) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)
1>main.obj : error LNK2028: unresolved token (0A0002C8) "extern "C" int __stdcall mysql_query(struct st_mysql *,char const *)" ([email protected]@[email protected]@[email protected]) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall mysql_query(struct st_mysql *,char const *)" ([email protected]@[email protected]@[email protected]) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" struct st_mysql * __stdcall mysql_real_connect(struct st_mysql *,char const *,char const *,char const *,char const *,unsigned int,char const *,unsigned int)" ([email protected]@[email protected]@[email protected]@Z) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" struct st_mysql * __stdcall mysql_init(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@Z) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)
預先感謝您
你能告訴我圖書館嗎?我不知道名字... –
@Pasha,更新了一個到在線文檔的鏈接。 – paxdiablo
我把它連接起來,但我仍然得到這些錯誤。 –