2015-05-09 65 views
0

我正在使用webrtc,並且我想避免使用libcmt,因爲報告鏈接中有錯誤。這是錯誤: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 

任何人都知道這件事嗎?

回答

0

SOLUTION:

/NODEFAULTLIB:libcmt.lib在文件common.gypi下鉻/ SRC /建立