MySQL Forums
Forum List  »  Source, Builds, Binaries

Building MySql 5.7 with Visual Studio 2015
Posted by: Vadym Borovskiy
Date: August 20, 2015 07:09PM

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!

Options: ReplyQuote


Subject
Views
Written By
Posted
Building MySql 5.7 with Visual Studio 2015
8066
August 20, 2015 07:09PM


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.