Hello, I just start trying building a program in C++ using MySQL++ API. I want to use sql_create_basic_n macros to manage results of queries on my database. So I defined structures using this macro based on the tables of the db. for example, in the db I have a table defined as follow: +-------+------------------+------+-----+---------------------+----------------+| Field | Type | Null | Key | Default | Extra |+-------+------------------+------+-----+---------------------+----------------+| || ID | int(10) unsigned | | PRI | NULL | auto_increment || name | varchar(60) | | | | || op | blob | YES | | NULL | || date | datetime | | | 0000-00-00 00:00:00 | |+-------+------------------+------+-----+---------------------+----------------+
and I defined a structure for this table as follow : sql_create_basic_4(structclass, 0,0, unsigned int, id, string, name, string, op, Date, sdate) The problem is when I compiled, I get a lost of warning for each of the defined structures: CGtad.h:10:1: warning: pasting "->" and "id" does not give a valid preprocessing token CGtad.h:10:1: warning: pasting "->" and "name" does not give a valid preprocessing token CGtad.h:10:1: warning: pasting "->" and "op" does not give a valid preprocessing token CGtad.h:10:1: warning: pasting "->" and "sdate" does not give a valid preprocessing token CGtad.h:10:1: warning: pasting "structclass" and "::" does not give a valid preprocessing token CGtad.h:10:1: warning: pasting "::" and "structclass" does not give a valid preprocessing token CGtad.h:10:1: warning: pasting "populate_structclass" and "<" does not give a valid preprocessing token CGtad.h:10:1: warning: pasting "sql_COMPARE__0" and "(" does not give a valid preprocessing token etc.... Does anyboby have an idear of how to resolve this ? -- Cordialement. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Emmanuel POIZOT CNAM/INTECHMER B.P. 324 50103 Cherbourg Cedex Tèl : 33 (0)2 33 88 73 42 Fax : 33 (0)2 33 88 73 39 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php