dbTalk Databases Forums  

mysql++ 2.0.7 error

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss mysql++ 2.0.7 error in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ghlex
 
Posts: n/a

Default mysql++ 2.0.7 error - 02-20-2006 , 02:40 PM






First hy to all,
I am trying to compile a simple program with VC++ 6.0 using mysql++

Ex.
//- -
#include <mysql++.h>

void main() {
}
//- -

I have set the directory mysql++/include but after that I get 102
error.
I thing is beause I dont set corretly :

"mysql_version.h"

It was like this :
#ifdef _CUSTOMCONFIG_
#include <custom_conf.h>
#else
#define PROTOCOL_VERSION @PROTOCOL_VERSION@
#define MYSQL_SERVER_VERSION "@VERSION@"
#define MYSQL_SERVER_SUFFIX "@MYSQL_SERVER_SUFFIX@"
#define FRM_VER @DOT_FRM_VERSION@
#define MYSQL_VERSION_ID @MYSQL_VERSION_ID@
#define MYSQL_PORT @MYSQL_TCP_PORT@
#define MYSQL_UNIX_ADDR "@MYSQL_UNIX_ADDR@"
#define MYSQL_CONFIG_NAME "my"

/* mysqld compile time options */
#ifndef MYSQL_CHARSET
#define MYSQL_CHARSET "@default_charset@"
#endif
#endif

and I have change it in :

#ifdef _CUSTOMCONFIG_
#include <custom_conf.h>
#else
#define PROTOCOL_VERSION 10
#define MYSQL_SERVER_VERSION "3.23.22-beta"
#define FRM_VER 6
#define MYSQL_VERSION_ID 32322
#define MYSQL_PORT 3306
#define MYSQL_UNIX_ADDR "/tmp/mysql.sock"
#define MYSQL_CHARSET "latin1"

/* mysqld compile time options */
#ifndef MYSQL_CHARSET
#define MYSQL_CHARSET "@default_charset@"
#endif
#endif

BUT STIL A LOT OF ERRORS :

For example I will paste some errors :
:\mysql++\include\sql_string.h(119) : error C2352:
'std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::=' : illegal call of non-static member function
c:\program files\microsoft visual
studio\vc98\include\xstring(66) : see declaration of '='
c:\mysql++\include\sql_string.h(127) : error C2352:
'std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::=' : illegal call of non-static member function
c:\program files\microsoft visual
studio\vc98\include\xstring(64) : see declaration of '='
c:\mysql++\include\resiter.h(64) : error C2976: 'reverse_iterator' :
too few template arguments
c:\program files\microsoft visual
studio\vc98\include\utility(174) : see declaration of
'reverse_iterator'
c:\mysql++\include\resiter.h(109) : see reference to class
template instantiation
'mysqlpp::const_subscript_container<OnType,ValueTy pe,ReturnType,SizeType,`template-parameter262'>'
being compiled
c:\mysql++\include\resiter.h(66) : error C2976: 'reverse_iterator' :
too few template arguments
c:\program files\microsoft visual
studio\vc98\include\utility(174) : see declaration of
'reverse_iterator'
c:\mysql++\include\resiter.h(109) : see reference to class
template instantiation
'mysqlpp::const_subscript_container<OnType,ValueTy pe,ReturnType,SizeType,`template-parameter262'>'
being compiled
c:\mysql++\include\resiter.h(64) : error C2976: 'reverse_iterator' :
too few template arguments
c:\program files\microsoft visual
studio\vc98\include\utility(174) : see declaration of
'reverse_iterator'
c:\mysql++\include\fields.h(42) : see reference to class
template instantiation 'mysqlpp::const_subscript_container<class
mysqlpp::Fields,struct st_mysql_field,struct st_mysql_field const
&,unsigned int,int>' being compiled
c:\mysql++\include\resiter.h(66) : error C2976: 'reverse_iterator' :
too few template arguments
c:\program files\microsoft visual
studio\vc98\include\utility(174) : see declaration of
'reverse_iterator'
c:\mysql++\include\fields.h(42) : see reference to class
template instantiation 'mysqlpp::const_subscript_container<class
mysqlpp::Fields,struct st_mysql_field,struct st_mysql_field const
&,unsigned int,int>' being compiled
c:\mysql++\include\type_info.h(266) : error C2258: illegal pure syntax,
must be '= 0'
c:\mysql++\include\type_info.h(266) : error C2252: 'string_type' : pure
specifier can only be specified for functions
c:\mysql++\include\type_info.h(277) : error C2252: 'offset' : pure
specifier can only be specified for functions
c:\mysql++\include\type_info.h(278) : error C2258: illegal pure syntax,
must be '= 0'
c:\mysql++\include\type_info.h(278) : error C2252: 'unsigned_offset' :
pure specifier can only be specified for functions
c:\mysql++\include\type_info.h(279) : error C2258: illegal pure syntax,
must be '= 0'
c:\mysql++\include\type_info.h(279) : error C2252: 'null_offset' : pure
specifier can only be specified for functions
c:\mysql++\include\type_info.h(280) : error C2258: illegal pure syntax,
must be '= 0'
c:\mysql++\include\type_info.h(280) : error C2252:
'unsigned_null_offset' : pure specifier can only be specified for
functions
c:\mysql++\include\coldata.h(107) : error C2039: 'string_type' : is not
a member of 'mysql_type_info'
c:\mysql++\include\type_info.h(120) : see declaration of
'mysql_type_info'
c:\mysql++\include\coldata.h(230) : see reference to class
template instantiation 'mysqlpp::ColData_Tmpl<Str>' being compiled
c:\mysql++\include\coldata.h(119) : error C2039: 'string_type' : is not
a member of 'mysql_type_info'
c:\mysql++\include\type_info.h(120) : see declaration of
'mysql_type_info'
c:\mysql++\include\coldata.h(230) : see reference to class
template instantiation 'mysqlpp::ColData_Tmpl<Str>' being compiled
c:\mysql++\include\coldata.h(296) : error C2059: syntax error :
''template<''
c:\mysql++\include\coldata.h(297) : error C2065: 'Str' : undeclared
identifier
c:\mysql++\include\coldata.h(297) : error C2065: 'T' : undeclared
identifier
c:\mysql++\include\coldata.h(297) : error C2065: 'B' : undeclared
identifier
c:\mysql++\include\coldata.h(313) : error C2143: syntax error : missing
';' before '{'
c:\mysql++\include\coldata.h(313) : error C2447: missing function
header (old-style formal list?)
c:\program files\microsoft visual studio\vc98\include\algorithm(17) :
error C2059: syntax error : 'const'
c:\program files\microsoft visual studio\vc98\include\algorithm(18) :
error C2059: syntax error : 'const'
c:\program files\microsoft visual studio\vc98\include\algorithm(41) :
error C2059: syntax error : 'const'
c:\program files\microsoft visual studio\vc98\include\algorithm(69) :
error C2059: syntax error : 'const'
c:\program files\microsoft visual studio\vc98\include\algorithm(146) :
error C2995: 'search_n' : template function has already been defined
c:\program files\microsoft visual
studio\vc98\include\algorithm(126) : see declaration of 'search_n'
c:\program files\microsoft visual studio\vc98\include\algorithm(150) :
error C2059: syntax error : 'const'

I hope mabe sombody can help me to post how to install
mysql++-2.0.7 or what i do wrong.

with a simple app
I have copy mysql.h from libmysqlclient-3.23.56


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.