c连接mysql数据库:undefined reference to `mysql_init@4'

环境特殊,使用一个组态软件自带的ceditor编辑器编辑c连接数据库,wing编译,结果报错。(是找不到lib文件吗?把这个lib文件放到编译器的lib文件中中可以吗?还是怎么操作?求指教,有报酬)提示如下:
C:\Users\FeiMao\AppData\Local\Temp\cc1PfS40.o:main.c:(.text+0x81): undefined reference to mysql_init@4'
C:\Users\FeiMao\AppData\Local\Temp\cc1PfS40.o:main.c:(.text+0xc6): undefined reference to
mysql_real_connect@32'
C:\Users\FeiMao\AppData\Local\Temp\cc1PfS40.o:main.c:(.text+0xec): undefined reference to mysql_query@8'
C:\Users\FeiMao\AppData\Local\Temp\cc1PfS40.o:main.c:(.text+0xfd): undefined reference to
mysql_close@4'
C:\Users\FeiMao\AppData\Local\Temp\cc1PfS40.o:main.c:(.text+0x10d): undefined reference to `mysql_error@4'
collect2: ld returned 1 exit status

缺少lib,需要把lib加到工程中链接。

未定义,查看是否包含了头文件和库我文件到正确的路径。