|
楼主 |
发表于 2005-12-6 13:00:14
|
显示全部楼层
呵呵,可是如果用gtk的时候`pkg-config gtk+-2.0 --libs --cflags`放在前后都是一样的-_-
再请教牛人一个问题:
下面是mysql.h中关于mysql_query的声明
[code:1]int STDCALL mysql_query(MYSQL *mysql, const char *q);
[/code:1]
我想这么用:
[code:1] if ( mysql_real_connect ( &my_connection, "localhost", "user", "passwd", "database", 0, NULL, 0 ) )
{
int res = mysql_query ( &my_connection, "SELECT * FROM staff" );
std::cout<<res;
}
[/code:1]
发现res都是0 |
|