When I try to compile the program, warning occurs (see below). Besides, the
program have runtime error as follows:
"The procedure entry point mysql_connect could not be located in the dynamic
link library LIBMYSQL.dll"
Is that I have missed any settings in MS Visual C++ 6.0/MySQL?
Thx.
Here is the warning:
--------------------Configuration: MFC_ex - Win32 Debug--------------------
Compiling resources...
Compiling...
MFC_ex.cpp
c:\mysql++\include\type_info1.hh(39) : warning C4800: 'int' : forcing value
to bool 'true' or 'false' (performance warning)
c:\mysql++\include\type_info1.hh(159) : warning C4800: 'unsigned int' :
forcing value to bool 'true' or 'false' (performance warning)
c:\mysql++\include\type_info1.hh(172) : warning C4800: 'int' : forcing value
to bool 'true' or 'false' (performance warning)
c:\mysql++\include\type_info1.hh(176) : warning C4800: 'int' : forcing value
to bool 'true' or 'false' (performance warning)
c:\mysql++\include\type_info1.hh(180) : warning C4800: 'int' : forcing value
to bool 'true' or 'false' (performance warning)
c:\mysql++\include\type_info1.hh(184) : warning C4800: 'int' : forcing value
to bool 'true' or 'false' (performance warning)
c:\mysql++\include\convert1.hh(40) : warning C4273: 'strtol' : inconsistent
dll linkage. dllexport assumed.
c:\mysql++\include\convert1.hh(41) : warning C4273: 'strtoul' : inconsistent
dll linkage. dllexport assumed.
c:\mysql++\include\sql_query1.hh(37) : warning C4800: 'class SQLQuery *' :
forcing value to bool 'true' or 'false' (performance warning)
c:\mysql++\include\sql_query1.hh(135) : warning C4355: 'this' : used in base
member initializer list
c:\mysql++\include\compare1.hh(48) : warning C4800: 'int' : forcing value to
bool 'true' or 'false' (performance warning)
c:\mysql++\include\result1.hh(33) : warning C4355: 'this' : used in base
member initializer list
c:\mysql++\include\result1.hh(42) : warning C4800: 'char' : forcing value to
bool 'true' or 'false' (performance warning)
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>
,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const
,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::allocator<
char>,int,std::less<std::basic_string<char,std::char_t raits<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> >::_Nil' : identifier was
truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const
,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::allocator<
char>,int,std::less<std::basic_string<char,std::char_t raits<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> >::_Nilrefs' : identifier
was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::pair<std::_Tree<std::basic_string<char,std:: char_traits<char>,std::all
ocator<char>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha rconst ,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::allocator<
char>,int,std::less<std::basic_string<char,std::char_t raits<char>,std::allocator <char> > >,std::allocator<int>::_Kfn,std::less<std::basic_string<char,std::ch ar _traits<char>,std::allocator<char> > >,std::allocator<int>::iterator,bool>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const
,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::allocator<
char>,int,std::less<std::basic_string<char,std::char_t raits<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> >' : identifier was
truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const
,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::allocator<
char>,int,std::less<std::basic_string<char,std::char_t raits<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> >::const_iterator' :
identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const
,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::allocator<
char>,int,std::less<std::basic_string<char,std::char_t raits<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\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const
,int>,std::map<std::basic_string<char,std::charStd Afx.cpp
_traits<char>,std::allocator<char>,int,std::less<std::basic_string<char,std::char_t raits<char>,std::allocator <char> > >,std::allocator<int>::_Kfn,std::less<std::basic_string<char,std::char _traits<char>,std::allocat or<char> > >,std::allocator<int::_Node' : identifier was truncated to '255' characters in the debug
information
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<cha r> > const
,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::allocator<
char>,int,std::less<std::basic_string<char,std::char_t raits<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> >::_Redbl' : identifier was
truncated to '255' characters in the debug information
Linking...
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; use /NODEFAULTLIB:library
MFC_ex.exe - 0 error(s), 22 warning(s)