执行linux下c程序时找不到mysql.h的解决办法
(2011-04-07 14:16:08)
标签:
linuxc编程mysql杂谈 |
分类: linux下c编程 |
test_sql.c:7: warning: passing argument 1 of ‘mysql_init’ from
incompatible pointer type
/usr/include/mysql/mysql.h:434: note: expected ‘struct MYSQL *’ but
argument is of type ‘struct MYSQL **’
test_sql.c:8: warning: passing argument 1 of ‘mysql_real_connect’
from incompatible pointer type
/usr/include/mysql/mysql.h:441: note: expected ‘struct MYSQL *’ but
argument is of type ‘struct MYSQL **’
OK啦!~虽然有些细节不太好,但是也算是出来了
接着运行。./test_sql,结果是OK,高兴!!!!http://www/uc/myshow/blog/misc/gif/E___6724EN00SIGG.gif~~~~