CT에서 자동추가한 VS2015 툴체인으로 C++ 테스트 컴파일이 안되는 경우가 있습니다.
이 경우 gtest 관련 컴파일 오류메세지가 뜹니다.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(341): warning C4530: C++ 예외 처리기가 사용되었지만 해제 의미 체계가 활성화되지 않았습니다. /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 *)': 멤버 함수를 이미 정의했거나 선언했습니다.

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::MatcherBase<T>::MatchAndExplainImpl' 선언을 참조하십시오.

VS2015 툴체인이 최신 버전이 아니면 이런 문제가 발생할 수 있습니다.

  1. VS2015 툴체인 버전을 확인합니다.
  2. VS2015 툴체인이 최신 버전이 아니라면, 최신 버전으로 업데이트합니다.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.