Help!! About MySQL and VC6

F

Forecast

I am using the MySQL++, MySQL 4 in MS Visual C++ 6.0.
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 said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > const
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
::_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 said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > const
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
::_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 said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha r
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
::_Kfn,std::less<std::basic_string<char,std::char
_traits said:
::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 said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > const
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
::_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 said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > const
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
::_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 said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > const
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
::_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 said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > const
,int>,std::map<std::basic_string<char,std::charStdAfx.cpp
_traits said:
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
information
c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::_Tree said:
,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > const
,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator
::_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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top