I think I have narrowed the problem down to being the SOCKET is not defined
in mysql.h:
#ifndef my_socket_defined
#ifdef __WIN__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif
In my application, i am include <mysql++> just as I saw done in an example
that came with
the code .... at the top of <mysql++> windows.h is included ...
So what am I missing? Thanks ....
--- "Gilfether, Ryan" <[EMAIL PROTECTED]> wrote: >
sorry you all, but I am new to Visual C++, I am
> trying to get some code
> compiled using MySQL++ 1.7.1 for MS Visual C++ 6.0
> but I keep getting an
> error:
>
>
d:\docs\devel\epiware\mysql++\mysql\include\mysql_com.h(115)
> : error C2146:
> syntax error : missing ';' before identifier 'fd'
>
d:\docs\devel\epiware\mysql++\mysql\include\mysql_com.h(115)
> : error C2501:
> 'SOCKET' : missing storage-class or type specifiers
>
d:\docs\devel\epiware\mysql++\mysql\include\mysql_com.h(115)
> : error C2501:
> 'fd' : missing storage-class or type specifiers
>
d:\docs\devel\epiware\mysql++\include\type_info1.hh(159)
> : warning C4800:
> 'unsigned int' : forcing value to bool 'true' or
> 'false' (performance
> warning)
> ....
>
> There are more errors, but I am assuming they are
> being caused by the first
> few ... anyone have any clue as to why this is
> happening, here is the
> contents of mysql_com.h:
>
> my_socket fd; // line 115, I assume my_socket is
> not being defined...
>
> Thanks....
>
> Ryan Gilfether
> Programmer
> Praxis, Inc.
> www.pxi.com
> (703)837-8400 x5412
>
>
---------------------------------------------------------------------
> 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
>
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
---------------------------------------------------------------------
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