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::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
> const 
,int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > >,std::allocator<int> 
>::_Kfn,std::less<std::basic_string<char,std::char_traits<ch
ar>,std::allocator<char> > >,std::allocator<int> >::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::pair<std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 >,std::pair<std::basic_string<char,std::ch
ar_traits<char>,std::allocator<char> > const 
,int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > >,std::allocator<int> >::_Kfn,std::le
ss<std::basic_string<char,std::char_traits<char>,std::allocator<char> > 
>,std::allocator<int> >::iterator,bool>' being compiled
        c:\program files\microsoft visual studio\vc98\include\map(93) : while 
compiling class-template member function 'int &__thiscall 
std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>,int,std::less<std::basic_string<cha
r,std::char_traits<char>,std::allocator<char> > >,std::allocator<int> 
>::operator [](const 
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)'
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]

Reply via email to