Unresolved external symbol error with Google Mock and Vcpkg

前端 未结 1 1482
无人共我
无人共我 2021-01-13 08:40

I have created a simple C++ test project with one mocking class:

#include 
#include 

class TestMock
{
public:
             


        
相关标签:
1条回答
  • 2021-01-13 09:25

    Taken from Murat Şeker's comment:

    Add "GTEST_LINKED_AS_SHARED_LIBRARY" preprocessor definiton to your project. See : github.com/google/googletest/issues/292

    This worked for me.

    0 讨论(0)
提交回复
热议问题