Trying to build for MinGW with the minimal features possible:cmake -G "MinGW Makefiles" -DWITH_XML_BACKEND=0 -DWITH_SERIAL_BACKEND=0 -DWITH_USB_BACKEND=0 -DENABLE_IPV6=0 -DPYTHON_BINDINGS=0 -DWITH_NETWORK_BACKEND=0 .. Yields:...
除了-std=c11之外,还应该为编译器使用-D_UCRT选项,为链接器使用-lucrt选项。有工作CMakeLists.txt和...