Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/144.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ webrtc-禁用libcmt的使用_C++_Webrtc - Fatal编程技术网

C++ webrtc-禁用libcmt的使用

C++ webrtc-禁用libcmt的使用,c++,webrtc,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 selec

我正在使用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

有人知道吗?

解决方案:

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