MySQL Forums
Forum List  »  Connector/C++

Debug Error in MySQL Connector/C++
Posted by: Xiang Wei
Date: December 27, 2009 03:03AM

Hi Everyone,

I used the Sample1.cpp of the sample codes, but it has the following errors when building it, does anyone have any ideal of why this happened? Thanks a lot!

p.s. I used visual studio 2008 on windows vista home edition.

Error:

1>------ Build started: Project: simple1, Configuration: Debug Win32 ------
1>Compiling...
1>simple1.cpp
1>c:\mysql++-3.0.9\lib\type_info.h(82) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\mysql++-3.0.9\lib\type_info.h(82) : error C2146: syntax error : missing ',' before identifier 'bt'
1>c:\mysql++-3.0.9\lib\type_info.h(99) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\mysql++-3.0.9\lib\type_info.h(99) : error C2146: syntax error : missing ';' before identifier 'base_type_'
1>c:\mysql++-3.0.9\lib\type_info.h(99) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\mysql++-3.0.9\lib\type_info.h(77) : error C2065: 'FIELD_TYPE_NULL' : undeclared identifier
1>c:\mysql++-3.0.9\lib\type_info.h(79) : error C2758: 'mysqlpp::mysql_ti_sql_type_info::enum_field_types' : must be initialized in constructor base/member initializer list
1> c:\mysql++-3.0.9\lib\type_info.h(99) : see declaration of 'mysqlpp::mysql_ti_sql_type_info::enum_field_types'
1>c:\mysql++-3.0.9\lib\type_info.h(79) : error C2614: 'mysqlpp::mysql_ti_sql_type_info' : illegal member initialization: 'base_type_' is not a base or member
1>c:\mysql++-3.0.9\lib\type_info.h(88) : error C2065: 'bt' : undeclared identifier
1>c:\mysql++-3.0.9\lib\type_info.h(89) : error C2065: 'flags' : undeclared identifier
1>c:\mysql++-3.0.9\lib\type_info.h(90) : error C2758: 'mysqlpp::mysql_ti_sql_type_info::enum_field_types' : must be initialized in constructor base/member initializer list
1> c:\mysql++-3.0.9\lib\type_info.h(99) : see declaration of 'mysqlpp::mysql_ti_sql_type_info::enum_field_types'
1>c:\mysql++-3.0.9\lib\type_info.h(90) : error C2614: 'mysqlpp::mysql_ti_sql_type_info' : illegal member initialization: 'base_type_' is not a base or member
1>c:\mysql++-3.0.9\lib\type_info.h(169) : error C2061: syntax error : identifier 'enum_field_types'
1>c:\mysql++-3.0.9\lib\type_info.h(169) : error C2535: 'mysqlpp::mysql_type_info::mysql_type_info(void)' : member function already defined or declared
1> c:\mysql++-3.0.9\lib\type_info.h(159) : see declaration of 'mysqlpp::mysql_type_info::mysql_type_info'
1>c:\mysql++-3.0.9\lib\type_info.h(271) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\mysql++-3.0.9\lib\type_info.h(271) : error C2146: syntax error : missing ';' before identifier 'string_type'
1>c:\mysql++-3.0.9\lib\type_info.h(275) : error C2065: 'FIELD_TYPE_STRING' : undeclared identifier
1>c:\mysql++-3.0.9\lib\type_info.h(275) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\mysql++-3.0.9\lib\type_info.h(275) : error C2864: 'mysqlpp::mysql_type_info::string_type' : only static const integral data members can be initialized within a class
1>c:\mysql++-3.0.9\lib\type_info.h(305) : error C2061: syntax error : identifier 'enum_field_types'
1>c:\mysql++-3.0.9\lib\type_info.h(171) : error C2065: 't' : undeclared identifier
1>c:\mysql++-3.0.9\lib\type_info.h(171) : error C2065: '_unsigned' : undeclared identifier
1>c:\mysql++-3.0.9\lib\type_info.h(171) : error C2065: '_null' : undeclared identifier
1>c:\mysql++-3.0.9\lib\type_info.h(172) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>Build log was saved at "file://C:\mysql++-3.0.9\vc2008\Debug\simple1\BuildLog.htm"
1>simple1 - 24 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Options: ReplyQuote


Subject
Views
Written By
Posted
Debug Error in MySQL Connector/C++
4660
December 27, 2009 03:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.