Bug #999 Cannot compile client on Windows
Submitted: 5 Aug 2003 2:53 Modified: 10 Dec 2003 3:09
Reporter: Hiroki Tamakoshi Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:4.0.14 OS:Windows (Windows2000)
Assigned to: Bugs System CPU Architecture:Any

[5 Aug 2003 2:53] Hiroki Tamakoshi
Description:
I cannot compile mysql client with VC++6.0 on Windows2000.

#include <my_global.h>
causes two errors, one _PC is redefined that is predefined in tchar.h and two my_dbug.h: no such file.

#include <mysql.h>
causes one orror that my_socket is not defined.

please fix these bugs.

best regards.

How to repeat:
1. prepare Windows2000.
2. prepare VC++6.0.
3. prepare main.c which contains
#include <my_global.h>
#include <mysql.h>
4. compile it.
[5 Aug 2003 5:05] MySQL Verification Team
For how to prepare and compile a client, please see the the example:

 c:\mysql\examples\libmysqltest\MyTest.dsw

shipped together with the release distribution. However please do the
below corrections:

Click settings
Click  C/C++ Tab
In the category combo select Preprocessor
Modify the additional include directories to: ..\..\include
Click the Link tab
In the category combo select General
In the Object/Library modules change the below lib path:

..\..\lib\debug\libmysql.lib

for the release version:

..\..\lib\opt\libmysql.lib

Greg please verify the above for the next release.
[15 Sep 2003 14:41] Greg Weir
I have added a fixed myTest.dsp to the source tree, which will be included in the next 4.0 release.