In some cases, C++ test compilation fails, compiled by VS2015 toolchain automatically added by CT. The error message shows compilation errors regarding gtest sources.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc.
C:\Program Files\Suresoft\CodeScroll Controller Tester 3.7\plugins\com.codescroll.ut_3.7.2/mock/googletest/googletest/include\gtest/gtest-matchers.h(362): error C2535: 'unknown-type testing ::internal::MatcherBase<T>::MatchAndExplainImpl(const testing::internal::MatcherBase<T> &,const T &,testing::MatchResultListener *)': Already defined or declared member function.
C:\Program Files\Suresoft\CodeScroll Controller Tester 3.7\plugins\com.codescroll.ut_3.7.2/mock/googletest/googletest/include\gtest/gtest-matchers.h(351): note: 'testing::internal: See the declaration of :MatcherBase<T>::MatchAndExplainImpl'.
This can happen if VS2015 toolchain is not up to date.
- Check the VS2015 toolchain version.
- If the VS2015 toolchain is not up to date, update it to the latest version.
Need more help with this?
Don’t hesitate to contact us here.