mysql的C++开发链接问题 5
windows下安装了mysql5.5,能正常使用,目前就要测一下mysql的C++接口包含了mysq.h,程序语法都没什么问题,libmysql.lib和libmysq...
windows下安装了mysql 5.5,能正常使用,目前就要测一下mysql的C++接口
包含了mysq.h,程序语法都没什么问题,libmysql.lib和libmysql.dll也包含进去了,但是出现了链接错误
error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function "void __cdecl myconnectSQL(void)" (?myconnectSQL@@YAXXZ)
error LNK2019: unresolved external symbol _mysql_init@4 referenced in function "void __cdecl myconnectSQL(void)" (?myconnectSQL@@YAXXZ)
请问这是什么问题造成的?
而且还有提示
warning LNK4199: /DELAYLOAD:libmysql.dll ignored; no imports found from libmysql.dll 展开
包含了mysq.h,程序语法都没什么问题,libmysql.lib和libmysql.dll也包含进去了,但是出现了链接错误
error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function "void __cdecl myconnectSQL(void)" (?myconnectSQL@@YAXXZ)
error LNK2019: unresolved external symbol _mysql_init@4 referenced in function "void __cdecl myconnectSQL(void)" (?myconnectSQL@@YAXXZ)
请问这是什么问题造成的?
而且还有提示
warning LNK4199: /DELAYLOAD:libmysql.dll ignored; no imports found from libmysql.dll 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询