Help!! About MySQL and VC6

Discussion in 'C++' started by Forecast, Dec 31, 2003.

  1. Forecast

    Forecast Guest

    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)
    Forecast, Dec 31, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sergey Tolstov

    const qualifier and VC6.0

    Sergey Tolstov, Oct 7, 2003, in forum: C++
    Replies:
    8
    Views:
    473
    Howard
    Oct 7, 2003
  2. Pete C.

    atof() and _tstof() in VC6.0

    Pete C., Jun 24, 2004, in forum: C++
    Replies:
    9
    Views:
    7,254
    Ian Semmel
    Jun 24, 2004
  3. Stijn Oude Brunink
    Replies:
    3
    Views:
    536
    Ron Natalie
    Nov 12, 2004
  4. Xiaopeng Xiong
    Replies:
    3
    Views:
    502
    Xiaopeng Xiong
    Mar 29, 2005
  5. Scott
    Replies:
    7
    Views:
    411
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Feb 17, 2005
Loading...

Share This Page