gtest编译小结(ubuntu 12.10 , gtest 1.6.0)
摘要:
1 下载源码,解压之当前用户的主目录(~/)2 进入make目录,执行make命令cd ~/gtest-1.6.0/makemake3 在ubuntu里编译出错,提示找不到lthread库。修改Makefile,在文件结尾:sample1_unittest : sample1.o sample1_unittest.o gtest_main.a $(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@修改成(-lpthread 移到命令末尾):sample1_unittest : sample1.o sample1_unittest.o gtest... 阅读全文
posted @ 2013-08-01 18:29 codestyle 阅读(501) 评论(0) 推荐(0)
浙公网安备 33010602011771号