[EMAIL PROTECTED] writes:
> 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
>
Hi!
If you are using VC++ 6.0, please download a distribution for VC++.
Regards,
Sinisa
____ __ _____ _____ ___ == MySQL AB
/*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
/*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED]
/*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus
/*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____
^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
/*/ \*\ Developers Team
---------------------------------------------------------------------
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