Reputation: 9912
I have project like this:
When I try to compile this,get error:multipe definition of `FooTest_failing_Test:TestBody()'
I have compiled gtest 1.7 and gmock 1.7,and copied all libg* to /user/lib,and my build setting like this:
enter code here
Upvotes: 0
Views: 2261
Reputation: 652
FootTest.cpp is being compiled twice because it is being #include(d) in AllTests.cpp. This produces the symbol twice that you are seeing. I don't think you need to include FooTest.cpp in AllTests.cpp.
Upvotes: 3