欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

编译-Dev连接mysql出错,好像是库链接有问题。

程序员文章站 2022-04-11 16:55:28
...
mysql编译

C:\Users\ADMINI~1\AppData\Local\Temp\ccf96B9s.o In function v_to_m(std::vector >&)':
31 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to
mysql_init'
34 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to mysql_real_connect'
40 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to
mysql_set_character_set'
42 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to mysql_query'
48 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to
mysql_use_result'
50 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to mysql_fetch_row'
53 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to
mysql_free_result'
55 C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\connect_mysql.cpp undefined reference to `mysql_close'
C:\Users\Administrator\Desktop\DEV-编译数据\connect_mysql\collect2.exe [Error] ld returned 1 exit status

相关标签: mysql 编译