Bug #48823 I cant compile my client program
Submitted: 17 Nov 2009 2:05 Modified: 27 Apr 2018 12:04
Reporter: Nooriya AL-Bulushi Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version: OS:Windows
Assigned to: CPU Architecture:Any

[17 Nov 2009 2:05] Nooriya AL-Bulushi
Description:
I am using VC++ 6.0 to write a simple client program in Windows xp. However, the header file my_global.h is causing many compilation errors

My program is:
#include <my_global.h>
#include <mysql.h>

int main(int argc, char *argv[])
{
   return 0;
}

and the comilation errors are:
--------------------Configuration: CONNECT1 - Win32 Debug--------------------
Compiling...
CONNECT1.C
c:\program files\mysql\mysql server 5.1\include\config-win.h(233) : error C2059: syntax error : 'bad suffix on number'
c:\program files\mysql\mysql server 5.1\include\config-win.h(233) : error C2146: syntax error : missing ';' before identifier 'L'
c:\program files\mysql\mysql server 5.1\include\config-win.h(233) : error C2065: 'L' : undeclared identifier
c:\program files\mysql\mysql server 5.1\include\config-win.h(236) : error C2059: syntax error : 'bad suffix on number'
c:\program files\mysql\mysql server 5.1\include\config-win.h(236) : error C2146: syntax error : missing ';' before identifier 'L'
c:\program files\mysql\mysql server 5.1\include\my_global.h(1579) : error C2059: syntax error : 'bad suffix on number'
c:\program files\mysql\mysql server 5.1\include\my_global.h(1579) : error C2146: syntax error : missing ')' before identifier 'L'
c:\program files\mysql\mysql server 5.1\include\my_global.h(1583) : error C2059: syntax error : 'bad suffix on number'
c:\program files\mysql\mysql server 5.1\include\my_global.h(1583) : error C2146: syntax error : missing ')' before identifier 'L'
Error executing cl.exe.

CONNECT1.OBJ - 9 error(s), 0 warning(s)

I tried everything but it is not working????!!!!

Help please

How to repeat:

Open VC++ 6.0

write the program and include he header files in it

include the path for the headers in Tools->options 

include the path for libraries in settings
[17 Nov 2009 2:10] Nooriya AL-Bulushi
I cannot compile my client program.Please help.It has been three weeks and still doesnt work.....
[17 Nov 2009 4:30] Valeriy Kravchuk
Please, try to use newer complier, Visual Studio .Net 2003 (7.1), or Visual Studio 2005 (8.0).

See http://dev.mysql.com/doc/refman/5.1/en/windows-source-build.html.
[18 Dec 2009 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[27 Apr 2018 12:04] Yngve Svendsen
Posted by developer:
 
Obsolete MySQL version and build env.