Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows10上的mingw32:编译错误;无法转换';关键“U部分*”;用于谷歌测试(gtest-1.8.0)_Windows_Windows 10_Googletest_Mingw32 - Fatal编程技术网

Windows10上的mingw32:编译错误;无法转换';关键“U部分*”;用于谷歌测试(gtest-1.8.0)

Windows10上的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

我已经安装了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_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
我怀疑我是否遗漏了什么