help me communicate with MySql on windows using C++

--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--
MOHAMMED SEIDU [ Fr, 27 April 2007 11:34 ] [ ID #1699130 ]

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

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 [at] yahoo.com]
Envoy=E9=A0: vendredi 27 avril 2007 11:35
=C0=A0: win32 [at] lists.mysql.com
Objet=A0: help me communicate with MySql on windows using C++

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.



--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org
Geoffroy Cogniaux [ Di, 29 Mai 2007 10:28 ] [ ID #1725050 ]
Datenbanken » gmane.comp.db.mysql.windows » help me communicate with MySql on windows using C++

Vorheriges Thema: Load data line end problem
Nächstes Thema: getting the next ID