您的位置:首页 > 编程语言 > C语言/C++

eclipse 中用GoogleTest 测试C++程序

2010-10-20 23:13 465 查看
近来学习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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: