| Bug #100868 | Can't build mysqlx plugin on Visual Studio 2019 | ||
|---|---|---|---|
| Submitted: | 16 Sep 2020 13:22 | Modified: | 19 Apr 14:56 |
| Reporter: | Takanori Sejima | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
| Version: | 8.0.21 | OS: | Windows (Windows 10 2004) |
| Assigned to: | CPU Architecture: | x86 | |
[16 Sep 2020 21:05]
MySQL Verification Team
Thank you for the bug report.
[19 Apr 14:56]
Dyre Tjeldvoll
Posted by developer: Thank you for your bug report. We now compile the X-plugin regularly in our CI testing: Thu 04/16/2026 -- MySQL 8.0.47 -- The C compiler identification is MSVC 19.29.30159.0 -- The CXX compiler identification is MSVC 19.29.30159.0 ... mysql_function_names.cc ... So will close this as not reproducible.

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...