Dears, My code is : void CMysql::ReadingFld(const char *tblname) { MYSQL_RES *fldres; int i; fldres=mysql_list_fields(&connection2db,tblname,"%"); ptr.srcFldNumber=mysql_num_fields(fldres); FieldsRow=mysql_fetch_fields(fldres); for (i=0;i<ptr.srcFldNumber;i++) cout << FieldsRow[i]; }//end of RedingFld method
I defined FieldsRow from MYSQL_FIELD type at my class. Now,I receive following error: [EMAIL PROTECTED] sql2sql]# make g++ -c -I/usr/include -I/usr/include/mysql sql2sql.cpp; sql2sql.cpp: In member function `void CMysql::ReadingFld(const char*)': sql2sql.cpp:208: no match for `MYSQL_FIELD& = MYSQL_FIELD*' operator /usr/include/mysql/mysql.h:92: candidates are: st_mysql_field& st_mysql_field::operator=(const st_mysql_field&) sql2sql.cpp:210: no match for `MYSQL_FIELD& [int&]' operator make: *** [sql2sql.o] Error 1 Please help me........ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]