Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmock报错 #18

Closed
gongjun136 opened this issue Feb 16, 2023 · 2 comments
Closed

gmock报错 #18

gongjun136 opened this issue Feb 16, 2023 · 2 comments

Comments

@gongjun136
Copy link

按照sudo apt install libgmock-dev已经安装好了gmock,cmake通过,make时仍然gmock报错如下

1676535196175

@gaoxiang12
Copy link
Owner

这是gtest机制导致的。书里一部分程序写成了gtest,所以如果你改动了什么东西,需要删掉CMakeCache.txt并重新编译(相当于清理了cmake缓存)。如果还不行,把build/整个删了重新编译试试。

@gongjun136
Copy link
Author

感谢高博解答,问题已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants