cerulelee opened a new issue, #995: URL: https://github.com/apache/rocketmq-clients/issues/995
### Before Creating the Bug Report - [x] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq-clients/discussions). - [x] I have searched the [GitHub Issues](https://github.com/apache/rocketmq-clients/issues) and [GitHub Discussions](https://github.com/apache/rocketmq-clients/discussions) of this repository and believe that this is not a duplicate. - [x] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Programming Language of the Client C++ ### Runtime Platform Environment - Windows 11 24H2 ### RocketMQ Version of the Client/Server rocketmq-clients-cpp-5.0.2 ### Run or Compiler Version - MSVC-19.43.34810 - CMake-4.0.1 - abseil-cpp-20250127.1 - protobuf-6.30.2 - grpc-1.70.2 - openssl-3.5.0 ### Describe the Bug A error occurred when building `error C3646: 'LOCKS_EXCLUDED': unknown override specifier` **If there are requirements for the abseil, protobuf, gRPC version, please specify.** The dependency library version I'm using: - abseil-cpp-20250127.1 - protobuf-6.30.2 - grpc-1.70.2 - openssl-3.5.0 ### Steps to Reproduce ### Command These commands are executed by the Python subprocess. Please replace `'/'` with `'\'` and add `'"'` for macro when copying. ```powershell C:\Program Files\CMake\bin\cmake.exe -G Ninja -D CMAKE_CXX_STANDARD=17 -D BUILD_EXAMPLES=OFF -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug> -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=C:\Users\admin\libraries\MSVC-19.43.34810\Release\rocketmq-clients-cpp-5.0.2 -D CMAKE_PREFIX_PATH=C:\Users\admin\libraries\MSVC-19.43.34810\Release\abseil-cpp-20250127.1;C:\Users\admin\libraries\MSVC-19.43.34810\Release\argparse-3.2;C:\Users\admin\libraries\MSVC-19.43.34810\Release\boost-1.88.0;C:\Users\admin\libraries\MSVC-19.43.34810\Release\bzip2-1.1.0;C:\Users\admin\libraries\MSVC-19.43.34810\Release\c-ares-1.34.5;C:\Users\admin\libraries\MSVC-19.43.34810\Release\eigen-3.4;C:\Users\admin\libraries\MSVC-19.43.34810\Release\grpc-1.70.2;C:\Users\admin\libraries\MSVC-19.43.34810\Release\hdf5-1.14.6;C:\Users\admin\libraries\MSVC-19.43.34810\Release\HighFive-2.10.1;C:\Users\admin\libraries\MSVC-19.43.34810\Release\json-3.12.0;C:\Users\admin\libraries\MSVC-19.43.34810\Releas e\libpng-1.6.47;C:\Users\admin\libraries\MSVC-19.43.34810\Release\lz4-1.10.0;C:\Users\admin\libraries\MSVC-19.43.34810\Release\nlopt-2.10.0;C:\Users\admin\libraries\MSVC-19.43.34810\Release\opencv-4.11.0;C:\Users\admin\libraries\MSVC-19.43.34810\Release\openssl-3.5.0;C:\Users\admin\libraries\MSVC-19.43.34810\Release\protobuf-6.30.2;C:\Users\admin\libraries\MSVC-19.43.34810\Release\re2-2024-07-02;C:\Users\admin\libraries\MSVC-19.43.34810\Release\spdlog-1.15.2;C:\Users\admin\libraries\MSVC-19.43.34810\Release\taskflow-3.9.0;C:\Users\admin\libraries\MSVC-19.43.34810\Release\zlib-1.3.1;C:\Users\admin\libraries\MSVC-19.43.34810\Release\zstd-1.5.7;C:\Users\admin\Desktop\projects\scripts\tools\strawberry-perl-5.40.0.1-64bit-portable\perl\bin;C:\Users\admin\Desktop\projects\scripts\tools\nasm-2.16.03 -B C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\build_MSVC-19.43.34810_Release -S C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2 ``` ```powershell C:\Program Files\CMake\bin\cmake.exe --build C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\build_MSVC-19.43.34810_Release -j 32 --config Release --clean-first ``` ### What Did You Expect to See? Successfully build ### What Did You See Instead? Failed to build Full log: [BuildLibraries_2025-05-09_04-05-08_stdout.log](https://github.com/user-attachments/files/20116064/BuildLibraries_2025-05-09_04-05-08_stdout.log) ```log [117/178] Building CXX object source\client\CMakeFiles\client.dir\ReceiveMessageStreamReader.cpp.obj FAILED: source/client/CMakeFiles/client.dir/ReceiveMessageStreamReader.cpp.obj C:\PROGRA~1\MICROS~1\2022\ENTERP~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\x64\cl.exe /nologo /TP -DFMT_HEADER_ONLY -DNOMINMAX -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\client\include -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\include -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\third_party\asio\1.18.2\include -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\build_MSVC-19.43.34810_Release\proto -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\third_party\fmt\9.0.0\include -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\third_party\opencensus\0.5.0-alpha -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\scheduler\include -IC:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5 .0.2\third_party\spdlog\1.10.0\include -external:IC:\Users\admin\libraries\MSVC-19.43.34810\Release\protobuf-6.30.2\include -external:IC:\Users\admin\libraries\MSVC-19.43.34810\Release\abseil-cpp-20250127.1\include -external:IC:\Users\admin\libraries\MSVC-19.43.34810\Release\grpc-1.70.2\include -external:IC:\Users\admin\libraries\MSVC-19.43.34810\Release\re2-2024-07-02\include -external:IC:\Users\admin\libraries\MSVC-19.43.34810\Release\zlib-1.3.1\include -external:IC:\Users\admin\libraries\MSVC-19.43.34810\Release\c-ares-1.34.5\include -external:IC:\Users\admin\libraries\MSVC-19.43.34810\Release\openssl-3.5.0\include -external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /showIncludes /Fosource\client\CMakeFiles\client.dir\ReceiveMessageStreamReader.cpp.obj /Fdsource\client\CMakeFiles\client.dir\ /FS -c C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\client\ReceiveMessageStreamReader.cpp C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include\UniqueIdGenerator.h(34): error C3646: 'LOCKS_EXCLUDED': unknown override specifier C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include\UniqueIdGenerator.h(34): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include\UniqueIdGenerator.h(34): error C2059: syntax error: '(' C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include\UniqueIdGenerator.h(34): error C2059: syntax error: '(' C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include\UniqueIdGenerator.h(36): error C2143: syntax error: missing ')' before ';' C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include\UniqueIdGenerator.h(36): error C2059: syntax error: ')' C:\Users\admin\Desktop\projects\scripts\pack\rocketmq-clients-cpp-5.0.2\source\base\include\InvocationContext.h(43): error C2665: 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string': no overloaded function could convert all the argument types C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\xstring(744): note: could be 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string(const _Elem *const )' ``` ### Additional Context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org