mysql++1.7.1 vc++6 compile errors

2006-03-13 Thread Keith Lee
Hi

I am using visual studio C++ 6, with SDK, my mysql database is 4.1.18, i 
downloaded mysql++ 1.7.1 as this is the compatiable version for vc++6. 

the example program compiles and runs. when i go to make my own project i use 
the wizard and create a basic dialog MFC app. at the top of the main cpp file i 
add #include mysql++ and then in the program call Connection 
con(login,localhost,root,abc);

in the mysql++ download there is many lib and include folders, i have copyied 
the contents of these in the the vc++6 include and lib folders. 

when come to compile i get many errors as seen below. please help

c:\program files\microsoft visual studio\vc98\include\type_info1.hh(39) : 
warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance 
warning)
c:\program files\microsoft visual studio\vc98\include\type_info1.hh(159) : 
warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' 
(performance warning)
c:\program files\microsoft visual studio\vc98\include\type_info1.hh(172) : 
warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance 
warning)
c:\program files\microsoft visual studio\vc98\include\type_info1.hh(176) : 
warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance 
warning)
c:\program files\microsoft visual studio\vc98\include\type_info1.hh(180) : 
warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance 
warning)
c:\program files\microsoft visual studio\vc98\include\type_info1.hh(184) : 
warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance 
warning)
c:\program files\microsoft visual studio\vc98\include\convert1.hh(40) : warning 
C4273: 'strtol' : inconsistent dll linkage.  dllexport assumed.
c:\program files\microsoft visual studio\vc98\include\convert1.hh(41) : warning 
C4273: 'strtoul' : inconsistent dll linkage.  dllexport assumed.
c:\program files\microsoft visual studio\vc98\include\sql_query1.hh(37) : 
warning C4800: 'class SQLQuery *' : forcing value to bool 'true' or 'false' 
(performance warning)
c:\program files\microsoft visual studio\vc98\include\sql_query1.hh(135) : 
warning C4355: 'this' : used in base member initializer list
c:\program files\microsoft visual studio\vc98\include\compare1.hh(48) : warning 
C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
c:\program files\microsoft visual studio\vc98\include\result1.hh(33) : warning 
C4355: 'this' : used in base member initializer list
c:\program files\microsoft visual studio\vc98\include\result1.hh(42) : warning 
C4800: 'char' : forcing value to bool 'true' or 'false' (performance warning)
c:\program files\microsoft visual studio\vc98\include\utility(25) : warning 
C4786: 
'std::_Treestd::basic_stringchar,std::char_traitschar,std::allocatorchar 
,std::pairstd::basic_stringchar,std::char_traitschar,std::allocatorchar 
 const 
,int,std::mapstd::basic_stringchar,std::char_traitschar,std::allocatorchar
 
,int,std::lessstd::basic_stringchar,std::char_traitschar,std::allocatorchar
  ,std::allocatorint 
::_Kfn,std::lessstd::basic_stringchar,std::char_traitsch
ar,std::allocatorchar  ,std::allocatorint ::iterator' : identifier was 
truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(93) : see 
reference to class template instantiation 
'std::pairstd::_Treestd::basic_stringchar,std::char_traitschar,std::allocatorchar
 ,std::pairstd::basic_stringchar,std::ch
ar_traitschar,std::allocatorchar  const 
,int,std::mapstd::basic_stringchar,std::char_traitschar,std::allocatorchar
 
,int,std::lessstd::basic_stringchar,std::char_traitschar,std::allocatorchar
  ,std::allocatorint ::_Kfn,std::le
ssstd::basic_stringchar,std::char_traitschar,std::allocatorchar  
,std::allocatorint ::iterator,bool' being compiled
c:\program files\microsoft visual studio\vc98\include\map(93) : while 
compiling class-template member function 'int __thiscall 
std::mapstd::basic_stringchar,std::char_traitschar,std::allocatorchar 
,int,std::lessstd::basic_stringcha
r,std::char_traitschar,std::allocatorchar  ,std::allocatorint 
::operator [](const 
std::basic_stringchar,std::char_traitschar,std::allocatorchar  )'
Generating Code...
Linking...
mysqlDlg.obj : error LNK2001: unresolved external symbol public: __thiscall 
MysqlConnection::~MysqlConnection(void) (??1MysqlConnection@@[EMAIL PROTECTED])
mysqlDlg.obj : error LNK2001: unresolved external symbol public: __thiscall 
MysqlConnection::MysqlConnection(char const *,char const *,char const *,char 
const *,bool) (??0MysqlConnection@@[EMAIL PROTECTED]@Z)
Debug/mysql.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

mysql.exe - 3 error(s), 14 warning(s)




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



mysql++1.7.1 vc++6 compile errors

2006-03-13 Thread Keith Lee
thanks for the reply Jason, i have now added mysql++.lib to the linker and also 
copyied the libmysql.dll to the system folder. the program complies now with a 
few performance warnings but no errors.

there is one link error
LINK : warning LNK4098: defaultlib LIBC conflicts with use of other libs; use 
/NODEFAULTLIB:library
In the settings if i do as it says above, i get over 200 errors!! so i revert 
back.


i have the simple code below but when the program is ran, the first message box 
comes up and then the program crashes

MessageBox(test1);
Connection con(login, localhost, root, abc);
MessageBox(test2);

the crash error is abnormal program termination

if i use the example console code that comes with mysql++ 1.7.1 i get the 
following error at run time.
Error: Client does not support authentication protocol requested by server; 
consider upgrading MySQL client

as i already said, i am running mysql++1.7.1 and mysql 4.1.18 and vc++6

please help











-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]