Bug #100868 Can't build mysqlx plugin on Visual Studio 2019
Submitted: 16 Sep 2020 13:22 Modified: 16 Sep 2020 21:05
Reporter: Takanori Sejima Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.21 OS:Microsoft Windows (Windows 10 2004)
Assigned to: CPU Architecture:x86

[16 Sep 2020 13:22] Takanori Sejima
Description:
When I built MySQL 8.0.21 on Visual Studio 2019 (version 16.7.3), the following message was output.

C:${path_to_dir}\mysql-8.0.21\plugin\x\src\mysql_function_names.cc(428,18): error C2039: 'back_inserter': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\vector(24): message : see declaration of 'std'

How to repeat:
1. download & unzip source code(mysql-8.0.21.zip).
2. cmake ..  -DWITH_DEBUG=1 -G "Visual Studio 16 2019" -DDOWNLOAD_BOOST=1 -DWITH_BOOST=${path_to_boost_dir}
3. build on Visual Studio 2019

Suggested fix:
I think it's better to add "#include <iterator>" to mysql_function_names.cc.

https://github.com/mysql/mysql-server/blob/f8cdce86448a211511e8a039c62580ae16cb96f5/plugin...
[16 Sep 2020 21:05] MySQL Verification Team
Thank you for the bug report.