Static or dynamic lib in vs

1. Error

value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in MyTestApp.obj

That means your project wants to use static lib as dynamic lib.

2. Solve

project properties ->

C/C++ ->

Code Generation ->

Runtime Library : choose Multi-threaded Debug DLL (for Debug) and Multi-threaded DLL (for Release).

3. ref

using_google_test_in_visual_c_2012

你可能感兴趣的:(vs)