Hi I am trying to use the sql_create_4 and sql_create_7 macros to
create a classes which I can pass to
query.insert on. Actually I have created several classes with this
macro and they all work. I just added
a new one with 4 values and suddenly I get the error:
/usr/local/include/mysql++/query.h: In member function
`mysqlpp::Query& mysqlpp::Query::insert(const T&) [with T = AcctMncTb
()(mysqlpp::String, mysqlpp::String, mysqlpp::String,
mysqlpp::String)]':
database.cpp:347: instantiated from here
/usr/local/include/mysql++/query.h:958: error: request for member
`value_list' in `v', which is of non-class type `AcctMncTb
()(mysqlpp::String, mysqlpp::String, mysqlpp::String,
mysqlpp::String)'
/usr/local/include/mysql++/query.h:958: error: request for member
`field_list' in `v', which is of non-class type `AcctMncTb
()(mysqlpp::String, mysqlpp::String, mysqlpp::String,
mysqlpp::String)'
/usr/local/include/mysql++/query.h:958: error: request for member
`table' in `v', which is of non-class type `AcctMncTb
()(mysqlpp::String, mysqlpp::String, mysqlpp::String,
mysqlpp::String)'
*** Error code 1
make: Fatal error: Command failed for target `database.o'
I can see no difference between my macro declarations other than the
number of parameters.
I could see one post on the mailing list referencing these errors but
I couldn't see an answer.
I am using g++ on solaris mysql++ version 3.0.3 mysql version 5.0.51
Any ideas ?
Thanks
G