webrtc - 禁用libcmt

时间:2015-05-09 14:39:44

标签: c++ webrtc

我使用webrtc并且我想避免使用libcmt,因为报告了链接错误。这是错误:

LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter already defined in MSVCRTD.lib(MSVCR120D.dll) 

我在common.gypi中读过这个,但我不知道如何执行,因为我无法找到include.gypi的位置。我正在使用c ++实现。

# Although base/allocator lets you select a heap library via an
# environment variable, the libcmt shim it uses sometimes gets in
# the way.  To disable it entirely, and switch to normal msvcrt, do e.g.
#  'win_use_allocator_shim': 0,
#  'win_release_RuntimeLibrary': 2
# to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt

有人知道吗?

1 个答案:

答案 0 :(得分:0)

<强> SOLUTION:

/NODEFAULTLIB:libcmt.lib在文件common.gypi下的chromium / src / build