I have created a simple C++ test project with one mocking class:
#include #include class TestMock { public:
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.