前景提要
HDC调试需求开发(15万预算),能者速来!>>>
在cygwin下编译gtest.
已经 export $GTEST_HOME=$HOME/test/common/gtest
编译中出现这样的错误. 在linux环境编译正常. 请大神指导一下.谢谢
~/test/common/gtest/make $make g++ -I.. -I../include -g -Wall -Wextra -c ../samples/sample1_unittest.cc In file included from ../include/gtest/gtest-param-test.h:159:0, from ../include/gtest/gtest.h:59, from ../samples/sample1_unittest.cc:48: ../include/gtest/internal/gtest-param-util-generated.h: In instantiation of ‘testing::internal::ValueArray2<T1, T2>::operator testing::internal::ParamGenerator<T>() const [with T = bool; T1 = bool; T2 = bool]’: ../include/gtest/gtest-param-test.h:1186:28: required from here ../include/gtest/internal/gtest-param-util-generated.h:80:26: 错误:‘ValuesIn’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] return ValuesIn(array); ^ In file included from ../include/gtest/gtest.h:59:0, from ../samples/sample1_unittest.cc:48: ../include/gtest/gtest-param-test.h:288:58: 附注:‘template<class Container> testing::internal::ParamGenerator<typename Container::value_type> testing::ValuesIn(const Container&)’ declared here, later in the translation unit internal::ParamGenerator<typename Container::value_type> ValuesIn( ^ Makefile:75: recipe for target 'sample1_unittest.o' failed make: *** [sample1_unittest.o] Error 1