dbTalk Databases Forums  

Problem compiling Mysql++

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


Discuss Problem compiling Mysql++ in the mailing.database.mysql-plusplus forum.



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

Default Problem compiling Mysql++ - 09-10-2005 , 06:18 AM






Hi to all,

i followed the instruction in README.vc to build up Mysql++.
1) executed vcvars32.bat
2) makemake vc

I got the following:


cl /Ic:\mysql\include /DMYSQLPP_MAKING_DLL /D_WINDLL /D_UNICODE /G6
/EHsc /nologo /c /MDd /Od /D_DEBUG /ZI /Zi coldata.cpp
coldata.cpp
e:\tesi\mysql++-2.0.4\lib\convert.h(105) : error C2065: '_strtoi64' :
undeclared identifier
e:\tesi\mysql++-2.0.4\lib\type_info.h(266) : error C2258: illegal pure
syntax, must be '= 0'
e:\tesi\mysql++-2.0.4\lib\type_info.h(266) : error C2252: 'string_type'
: pure specifier can only be specified for functions
e:\tesi\mysql++-2.0.4\lib\type_info.h(277) : error C2252: 'offset' :
pure specifier can only be specified for functions
e:\tesi\mysql++-2.0.4\lib\type_info.h(278) : error C2258: illegal pure
syntax, must be '= 0'
e:\tesi\mysql++-2.0.4\lib\type_info.h(278) : error C2252:
'unsigned_offset' : pure specifier can only be specified for functions
e:\tesi\mysql++-2.0.4\lib\type_info.h(279) : error C2258: illegal pure
syntax, must be '= 0'
e:\tesi\mysql++-2.0.4\lib\type_info.h(279) : error C2252: 'null_offset'
: pure specifier can only be specified for functions
e:\tesi\mysql++-2.0.4\lib\type_info.h(280) : error C2258: illegal pure
syntax, must be '= 0'
e:\tesi\mysql++-2.0.4\lib\type_info.h(280) : error C2252:
'unsigned_null_offset' : pure specifier can only be specified for functions
e:\tesi\mysql++-2.0.4\lib\coldata.h(107) : error C2039: 'string_type' :
is not a member of 'mysql_type_info'
e:\tesi\mysql++-2.0.4\lib\type_info.h(120) : see declaration of
'mysql_type_info'
e:\tesi\mysql++-2.0.4\lib\coldata.h(230) : see reference to
class template instantiation 'mysqlpp::ColData_Tmpl<Str>' being compiled
e:\tesi\mysql++-2.0.4\lib\coldata.h(119) : error C2039: 'string_type' :
is not a member of 'mysql_type_info'
e:\tesi\mysql++-2.0.4\lib\type_info.h(120) : see declaration of
'mysql_type_info'
e:\tesi\mysql++-2.0.4\lib\coldata.h(230) : see reference to
class template instantiation 'mysqlpp::ColData_Tmpl<Str>' being compiled
e:\tesi\mysql++-2.0.4\lib\coldata.h(296) : error C2059: syntax error :
''template<''
e:\tesi\mysql++-2.0.4\lib\coldata.h(297) : error C2065: 'Str' :
undeclared identifier
e:\tesi\mysql++-2.0.4\lib\coldata.h(297) : error C2065: 'T' : undeclared
identifier
e:\tesi\mysql++-2.0.4\lib\coldata.h(297) : error C2065: 'B' : undeclared
identifier
e:\tesi\mysql++-2.0.4\lib\coldata.h(310) : error C2143: syntax error :
missing ';' before '{'
e:\tesi\mysql++-2.0.4\lib\coldata.h(310) : error C2447: missing function
header (old-style formal list?)
e:\tesi\mysql++-2.0.4\lib\coldata.cpp(34) : error C2989:
'ColData_Tmpl<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > >' : template class
has already been defined as a non-template class
e:\tesi\mysql++-2.0.4\lib\coldata.cpp(35) : error C2989:
'ColData_Tmpl<class mysqlpp::const_string>' : template class has already
been defined as a non-template class
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.


What do i miss?
Thank you for your help.

Michele.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Problem compiling Mysql++ - 09-13-2005 , 08:57 AM






Michele Sassi wrote:
Quote:
e:\tesi\mysql++-2.0.4\lib\convert.h(105) : error C2065: '_strtoi64' :
undeclared identifier
e:\tesi\mysql++-2.0.4\lib\type_info.h(266) : error C2258: illegal pure
syntax, must be '= 0'
These two errors suggest to me that you are using an old compiler.
MySQL++ requires Visual C++ 7.1 (VS 2003) or newer.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



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.