googletest icon indicating copy to clipboard operation
googletest copied to clipboard

Gmock Linking Error

Open VinayShirol-eaton opened this issue 2 years ago • 0 comments

Describe the issue

I am using Gtest and Gmock with MingW, The following linking error is occurring for me.

Steps to reproduce the problem

undefined reference to 'testing::internal::GetWithouMatchers(); undefined reference to 'testing::internal::UntypedFunctionMockBase();

etc...

What version of GoogleTest are you using?

Cmake Command : g++ testRunner.cpp -lgtest -lgmock -lpthread -lgtest_main -lgmock_main

What operating system and version are you using?

Mingw

What compiler and version are you using?

g++ testRunner.cpp -lgtest -lgmock -lpthread -lgtest_main -lgmock_main

What build system are you using?

Cmake version (3.7)

Additional context

undefined reference to 'testing::internal::GetWithouMatchers(); undefined reference to 'testing::internal::UntypedFunctionMockBase();

VinayShirol-eaton avatar Mar 24 '23 14:03 VinayShirol-eaton