Help!! About MySQL and VC6

From: Forecast (forecast_at_csis.hku.hk)
Date: 12/31/03


Date: Wed, 31 Dec 2003 17:16:31 +0800

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<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > 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> >::_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_traits<char>,std::allocator<cha
r>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > 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> >::_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_traits<char>,std::allocator<cha
r
> > 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<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_traits<char>,std::allocator<cha
r>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > 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> >' : 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_traits<char>,std::allocator<cha
r>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > 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> >::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_traits<char>,std::allocator<cha
r>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > 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\xmemory(38) : warning
C4786:
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r>
>,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<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<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_traits<char>,std::allocator<cha
r>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r> > 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> >::_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)



Relevant Pages

  • Re: bool vs. BOOL
    ... The first version should produce a warning if your warning settings are high ... bool MyMethod() ... Microsoft method that returns BOOL. ... BOOL bOk = DeviceIoControl; ...
    (microsoft.public.vc.mfc)
  • Re: gratuitous gcc warnings: unused function arguments?
    ... > I'm not sure what is required to disable this warning, ... The second error message is only generated when GCC thinks it ... someone else (hopefully a GCC expert/language pedant :-) second guess whether ... bool warn_unused_variable; ...
    (freebsd-current)
  • lisp toy: strangest warning Ive seen
    ... Can anyone shed light upon this warning. ... number it refers to the anonymous union, ... int cari; ... bool init() { ...
    (comp.lang.c)
  • Re: Performance warning
    ... Boolean is 8 bits - corresponds to unsigned char. ... OTOH, BOOL ... The warning underscores the fact ... > or 'false' (performance warning) ...
    (microsoft.public.vc.atl)
  • Re: Why INFINITE loop in a thread occupy so much CPU time??
    ... With the attendant warning about the constant expression. ... This is a common programming technique. ... Good programming practice would consist of using the compiler at ... One can write 'bool' in C++ but not C. ...
    (microsoft.public.vc.mfc)