近来学习C++程序,所用的工具是eclipse,用GoogleTest进行测试,老是出现一下的错误,不知道是怎么回事,请高手指教,感谢。。。。
**** Internal Builder is used for build ****
g++ -ID:/gtest/include -O0 -g3 -Wall -c -fmessage-length=0 -osrc/test.o ../src/test.cpp
../src/test.cpp:13:22: error: '_TCHAR' has not been declared
../src/test.cpp: In function 'int _tmain(int, int**)':
../src/test.cpp:15:40: error: no matching function for call to 'InitGoogleTest(int*, int**&)'
D:/gtest/include/gtest/gtest.h:1122:6: note: candidates are: void testing::InitGoogleTest(int*, char**)
D:/gtest/include/gtest/gtest.h:1126:6: note: void testing::InitGoogleTest(int*, wchar_t**)
Build error occurred, build is stopped
Time consumed: 2016 ms.