Hello,

When using Visual C++ or Delorie DJGPP (under windows 2000) compilers and compiling 
the following example:

#include <iostream>
#include <winsock.h>
#include <windows.h>
#include <iomanip>
#include <mysql++>

int main()
{
        Connection con("stw");
        return 0;
}



I always get the following errors related to the mysql_com.h header file:

--------------------Configuration: connect - Win32 Debug--------------------
Compiling...
connect.cpp
c:\mysql\include\mysql_com.h(117) : error C2208: 'unsigned int' : no members defined 
using this type
c:\mysql\include\mysql_com.h(117) : error C2501: 'fd' : missing storage-class or type 
specifiers
c:\mysql\mysql++-1.7.1-win32-vc++\include\type_info1.hh(159) : warning C4800: 
'unsigned int' : forcing value to bool 'true' or 'false' (performance warning)
c:\mysql\mysql++-1.7.1-win32-vc++\include\type_info1.hh(172) : warning C4800: 'int' : 
forcing value to bool 'true' or 'false' (performance warning)
c:\mysql\mysql++-1.7.1-win32-vc++\include\type_info1.hh(176) : warning C4800: 'int' : 
forcing value to bool 'true' or 'false' (performance warning)
c:\mysql\mysql++-1.7.1-win32-vc++\include\type_info1.hh(180) : warning C4800: 'int' : 
forcing value to bool 'true' or 'false' (performance warning)
c:\mysql\mysql++-1.7.1-win32-vc++\include\type_info1.hh(184) : warning C4800: 'int' : 
forcing value to bool 'true' or 'false' (performance warning)
Error executing cl.exe.

connect.obj - 2 error(s), 5 warning(s)

Any ideas for a solution?

Thanks,
John


-----

20 email addresses from 15,000 domain names - free at http://www.another.com

Wear a designer label -- your own!  Your email or web address on a t-shirt for only 
9.99:
http://www.clickandbuild.com/cnb/shop/another

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to