RE: help me communicate with MySql on windows using C++
"Geoffroy Cogniaux" <[email protected]> Tue, 29 May 2007 10:28:51 +0200
| Newsgroups | gmane.comp.db.mysql.windows |
|---|---|
| Message-ID | <[email protected]> |
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 : MOHAMMED SEIDU [mailto:[email protected]] Envoyé : vendredi 27 avril 2007 11:35 À : [email protected] Objet : 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/[email protected]