Building gTest(release-1.12.1) with visual studio 2015 #4120
Unanswered
ra30
asked this question in
Community Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am unable to build gTest (release-1.12.1) using visual studio 2015.
I am getting below error messages. does gTest (release-1.12.1) support visual studio 2015. Can someone help me?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
C:\googletest_build>cmake --build .
Microsoft (R) Build Engine version 14.0.23107.0
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002: ignoring unknown option '-utf-8' [C:\googletest_build\gtest.vcxproj]
gtest-all.cc
C:\googletest\googletest\include\gtest/gtest-matchers.h(380): error C2535: 'unknown-type testing::internal::MatcherBase::MatchAndExplainImpl(const testing::internal::MatcherBase &,const T &,testing
::MatchResultListener *)': member function already defined or declared [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\include\gtest/gtest-matchers.h(369): note: see declaration of 'testing::internal::MatcherBase::MatchAndExplainImpl'
C:\googletest\googletest\include\gtest/gtest-matchers.h(490): note: see reference to class template instantiation 'testing::internal::MatcherBase' being compiled
C:\googletest\googletest\include\gtest/gtest-matchers.h(380): error C2535: 'unknown-type testing::internal::MatcherBase<const std::string &>::MatchAndExplainImpl(const testing::internal::MatcherBase<cons
t std::string &> &,T,testing::MatchResultListener *)': member function already defined or declared [C:\googletest_build\gtest.vcxproj]
with
[
T=const std::string &
]
C:\googletest\googletest\include\gtest/gtest-matchers.h(369): note: see declaration of 'testing::internal::MatcherBase<const std::string &>::MatchAndExplainImpl'
C:\googletest\googletest\include\gtest/gtest-matchers.h(531): note: see reference to class template instantiation 'testing::internal::MatcherBase<const std::string &>' being compiled
C:\googletest\googletest\include\gtest/gtest-matchers.h(380): error C2535: 'unknown-type testing::internal::MatcherBasestd::string::MatchAndExplainImpl(const testing::internal::MatcherBasestd::string
&,const T &,testing::MatchResultListener *)': member function already defined or declared [C:\googletest_build\gtest.vcxproj]
with
[
T=std::string
]
C:\googletest\googletest\include\gtest/gtest-matchers.h(369): note: see declaration of 'testing::internal::MatcherBasestd::string::MatchAndExplainImpl'
C:\googletest\googletest\include\gtest/gtest-matchers.h(553): note: see reference to class template instantiation 'testing::internal::MatcherBasestd::string' being compiled
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1212): error C3520: 'I': parameter pack must be expanded in this context [C:\googletest_build\gtest.vcxpr
oj]
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1225): note: see reference to class template instantiation 'testing::internal::ElemFromList<1,bool,bool>' being compiled
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1238): note: see reference to class template instantiation 'testing::internal::FlatTupleElemBase<testing::internal::FlatTuple<bool,bool>
,1>' being compiled
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1279): note: see reference to class template instantiation 'testing::internal::FlatTupleBase<testing::internal::FlatTuple<bool,bool>,tes
ting::internal::IndexSequence<0,1>>' being compiled
C:\googletest\googletest\include\gtest/internal/gtest-param-util.h(815): note: see reference to class template instantiation 'testing::internal::FlatTuple<bool,bool>' being compiled
C:\googletest\googletest\include\gtest/gtest-param-test.h(359): note: see reference to class template instantiation 'testing::internal::ValueArray<bool,bool>' being compiled
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1212): error C2893: Failed to specialize function template 'R testing::internal::ElemFromListImpl<testing::internal::IndexSequence<0>>::Ap
ply(testing::internal::Ignore<0>,R (__cdecl *)(void),...)' [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1212): note: With the following template arguments:
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1212): note: 'R=bool'
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1289): error C2039: 'FlatTupleBase<testing::internal::FlatTuple<bool,bool>,testing::internal::IndexSequence<0,1> >': is not a member of 't
esting::internal::FlatTuple<bool,bool>' [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1289): error C2873: 'Apply': symbol cannot be used in a using-declaration [C:\googletest_build\gtest.vcxp
roj]
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1290): error C2039: 'FlatTupleBase<testing::internal::FlatTuple<bool,bool>,testing::internal::IndexSequence<0,1> >': is not a member of 't
esting::internal::FlatTuple<bool,bool>' [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\include\gtest/internal/gtest-internal.h(1290): error C2873: 'Get': symbol cannot be used in a using-declaration [C:\googletest_build\gtest.vcxpro
j]
C:\googletest\googletest\src/gtest.cc(6534): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6535): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6536): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6537): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6538): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6539): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6540): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6541): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6542): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6543): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6544): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6545): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6546): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6547): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6548): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6549): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6550): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6551): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6552): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6553): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
C:\googletest\googletest\src/gtest.cc(6554): warning C4127: conditional expression is constant [C:\googletest_build\gtest.vcxproj]
Beta Was this translation helpful? Give feedback.
All reactions