Building MySql 5.7 with Visual Studio 2015
Hello,
I have just checked out the source code of MySQL 5.7 from git and successfully generated a solution for VS2015 in x64 configuration. Building the solution produces almost 10K errors and more than 1K warnings.
Here are some examples.
3>c:\vb\tmp\mysql-server\include\my_global.h(675): error C2011: 'timespec': 'struct' type redefinition (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3>c:\vb\tmp\mysql-server\include\my_global.h(702): error C2039: 'tv': is not a member of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3>c:\vb\tmp\mysql-server\include\my_global.h(707): error C2039: 'max_timeout_msec': is not a member of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3>c:\vb\tmp\mysql-server\include\my_global.h(733): error C2039: 'tv': is not a member of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\time.h(39): note: see declaration of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
3>c:\vb\tmp\mysql-server\include\my_global.h(735): error C2039: 'tv': is not a member of 'timespec' (compiling source file C:\vb\tmp\mysql-server\strings\ctype-cp932.c)
The compiler complains about 'timespec' structure. Looks like MySQL redefines it. There are other errors, but they all have to do with the 'timespec' structure.
Would you please confirm that MySQL builds on Windows 10 with VS2015? If yes, how can the errors be fixed?
Thank you!
Subject
Views
Written By
Posted
Building MySql 5.7 with Visual Studio 2015
8275
August 20, 2015 07:09PM
3453
August 21, 2015 02:16AM
2536
August 21, 2015 02:46AM
2853
November 06, 2015 07:24AM
2300
December 30, 2015 04:10AM
2396
February 08, 2016 10:16AM
2359
February 08, 2016 10:22AM
2434
February 09, 2016 07:19AM
2517
September 14, 2015 04:13PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.