Static or dynamic lib in vs

来源:互联网 发布:php 网站框架 编辑:程序博客网 时间:2024/05/16 06:50

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

0 0
原创粉丝点击