[grpc_example] Unrecognized command-line option '-ignore:4221' when building with MinGW #39275
Labels
category:community-triplet
A PR or issue related to community triplets not officially validated by the vcpkg team.
Operating system
Windows 10 Enterprise
Compiler
MinGW g++ 13.2.0
Steps to reproduce the behavior
Failure logs
D:\grpc_example\build>cmake --build .
[ 12%] Building CXX object CMakeFiles/server.dir/src/server.cpp.obj
[ 25%] Building CXX object CMakeFiles/server.dir/proto/helloworld.grpc.pb.cc.obj
[ 37%] Building CXX object CMakeFiles/server.dir/proto/helloworld.pb.cc.obj
[ 50%] Linking CXX executable server.exe
c++.exe: error: unrecognized command-line option '-ignore:4221'
mingw32-make[2]: *** [CMakeFiles\server.dir\build.make:168: server.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:84: CMakeFiles/server.dir/all] Error 2
mingw32-make: *** [Makefile:90: all] Error 2
Additional context
Project Structure and CMakeLists.txt
CMakeLists.txt content
server.cpp Content
client.cpp Content
proto File Content
proto Compilation Commands
protoc --proto_path=. --cpp_out=. helloworld.proto protoc --proto_path=. --grpc_out=. --plugin=protoc-gen-grpc="F:\vcpkg\packages\grpc_x64-windows\tools\grpc\grpc_cpp_plugin.exe" helloworld.proto
The text was updated successfully, but these errors were encountered: