Windows10上的mingw32:编译错误;无法转换';关键“U部分*”;用于谷歌测试(gtest-1.8.0)
我已经安装了mingw32,在C:\gtest-1.8.0中下载了gtest-1.8.0 我已经启动了命令 C:\gtest-1.8.0\googletest\make>mingw32 makeWindows10上的mingw32:编译错误;无法转换';关键“U部分*”;用于谷歌测试(gtest-1.8.0),windows,windows-10,googletest,mingw32,Windows,Windows 10,Googletest,Mingw32,我已经安装了mingw32,在C:\gtest-1.8.0中下载了gtest-1.8.0 我已经启动了命令 C:\gtest-1.8.0\googletest\make>mingw32 make g++ -isystem ../include -g -Wall -Wextra -pthread -c ../samples/sample1.cc g++ -isystem ../include -g -Wall -Wextra -pthread -c ../samples/sample1_unitt
g++ -isystem ../include -g -Wall -Wextra -pthread -c ../samples/sample1.cc
g++ -isystem ../include -g -Wall -Wextra -pthread -c ../samples/sample1_unittest.cc
g++ -isystem ../include -I.. -g -Wall -Wextra -pthread -c \
../src/gtest-all.cc
In file included from ../src/gtest-all.cc:45:0:
../src/gtest-port.cc: In constructor 'testing::internal::Mutex::Mutex()':
../src/gtest-port.cc:242:45: error: cannot convert 'CRITICAL_SECTION* {aka _CRITICAL_SECTION*}' to '_RTL_CRITICAL_SECTION*' in initialization
critical_section_(new CRITICAL_SECTION) {
^
[...]
Makefile:57: recipe for target 'gtest-all.o' failed
mingw32-make: *** [gtest-all.o] Error 1
我怀疑我是否遗漏了什么