linux下Gtest安装配置使用

时间:2024-03-24 10:32:29

一、参考网址:
步骤参考下面的网址即可,Gtest文件下的REDME文件。
1、http://www.mamicode.com/info-detail-1740378.html

二、出现的错误:
libgtest.a(gtest-all.cc.o):error: In function ‘testing::internal::ThreadLocaltesting::TestParResultReporterInterface::~ThreadLocal()’:
linux下Gtest安装配置使用

三、解决方案:
我的工程使用的VS2017远程连接的linux进行的配置测试,所以下图展示的是VS上的配置
1、缺少链接库pthread
2、配置如下:
linux下Gtest安装配置使用