CLion and Yaml-cpp: how can i build yaml-cpp with clion in windows

Multi tool use


CLion and Yaml-cpp: how can i build yaml-cpp with clion in windows
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:
yaml-cpp
yaml-cpp
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:githubyaml-cpptestgtest-1.8.0googlemocksrcgmock-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?
yaml-cpp
2 Answers
2
Just disable testing support during CMake configuration via -DYAML_CPP_BUILD_TESTS=OFF.
Seems bundled gtest has issues with MinGW compatibility.
intellij-support have sloved this problem: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000410844-how-to-generate-lib-and-include-lib-on-windows-
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
This seems to be a problem with MinGW: github.com/google/googletest/issues/606
– oLen
Apr 4 at 17:43