0

I had install yaml-cpp in linux successfully, then i want to install yaml-cpp in windows with clion. But when I build or install it, some errors happened. Such as:

 In file included from D:/github/yaml-cpp/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-linked_ptr.h:74:0,
                 from D:/github/yaml-cpp/test/gtest-1.8.0/googlemock/include/gmock/internal/gmock-port.h:53,
                 from D:/github/yaml-cpp/test/gtest-1.8.0/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from D:/github/yaml-cpp/test/gtest-1.8.0/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from D:/github/yaml-cpp/test/gtest-1.8.0/googlemock/include/gmock/gmock-actions.h:46,
                 from D:/github/yaml-cpp/test/gtest-1.8.0/googlemock/include/gmock/gmock.h:58,
                 from D:\github\yaml-cpp\test\gtest-1.8.0\googlemock\src\gmock-all.cc:40:
D:/github/yaml-cpp/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:1782:3: error: 'AutoHandle' does not name a type

Is there something I should modify if I want to use yaml-cpp in windows?

rollstuhlfahrer
  • 3,988
  • 9
  • 25
  • 38
ansyser
  • 3
  • 1
  • 3
  • This seems to be a problem with MinGW: https://github.com/google/googletest/issues/606 – oLen Apr 04 '18 at 17:43

2 Answers2

0

Just disable testing support during CMake configuration via -DYAML_CPP_BUILD_TESTS=OFF. Seems bundled gtest has issues with MinGW compatibility.

0

intellij-support has solved this problem.

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
ansyser
  • 3
  • 1
  • 3