help me communicate with MySql on windows using C++

help me communicate with MySql on windows using C++

am 27.04.2007 11:34:38 von MOHAMMED SEIDU

--0-1872500531-1177666478=:12232
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Dear Sir,

I get the following errors anytime I compile an example from the tutorial books as follows:

Deleting intermediate files and output files for project 'MySql_connect - Win32 Debug'.
--------------------Configuration: MySql_connect - Win32 Debug--------------------
Compiling...
MySql_connect.cpp
i:\mysql_com.h(185) : error C2146: syntax error : missing ';' before identifier 'fd'
i:\mysql_com.h(185) : error C2501: 'SOCKET' : missing storage-class or type specifiers
i:\mysql_com.h(185) : error C2501: 'fd' : missing storage-class or type specifiers
i:\mysql_com.h(349) : error C2065: 'SOCKET' : undeclared identifier
i:\mysql_com.h(349) : error C2146: syntax error : missing ')' before identifier 's'
i:\mysql_com.h(350) : error C2059: syntax error : ')'
Error executing cl.exe.
MySql_connect.exe - 6 error(s), 0 warning(s)

Please help me as my project depends on it.


---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
--0-1872500531-1177666478=:12232--

RE: help me communicate with MySql on windows using C++

am 29.05.2007 10:28:51 von Geoffroy Cogniaux

Hi,

Try with this definition which should be placed before any #include:
#define WINDOWS_LEAN_AND_MEAN

It controls winsock behaviour to be used in a more "portable compliant" =
way.

Geoffroy.

-----Message d'origine-----
De=A0: MOHAMMED SEIDU [mailto:chieffresher@yahoo.com]=20
Envoyé : vendredi 27 avril 2007 11:35
À : win32@lists.mysql.com
Objet=A0: help me communicate with MySql on windows using C++

Dear Sir,
=20
I get the following errors anytime I compile an example from the =
tutorial
books as follows:
=20
Deleting intermediate files and output files for project =
'MySql_connect -
Win32 Debug'.
--------------------Configuration: MySql_connect - Win32
Debug--------------------
Compiling...
MySql_connect.cpp
i:\mysql_com.h(185) : error C2146: syntax error : missing ';' before
identifier 'fd'
i:\mysql_com.h(185) : error C2501: 'SOCKET' : missing storage-class or =
type
specifiers
i:\mysql_com.h(185) : error C2501: 'fd' : missing storage-class or type
specifiers
i:\mysql_com.h(349) : error C2065: 'SOCKET' : undeclared identifier
i:\mysql_com.h(349) : error C2146: syntax error : missing ')' before
identifier 's'
i:\mysql_com.h(350) : error C2059: syntax error : ')'
Error executing cl.exe.
MySql_connect.exe - 6 error(s), 0 warning(s)

Please help me as my project depends on it.

=20
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.



--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32@m.gmane.org