VS2015 一个或者多个重定义

LNK2019 没法解析的外部符号 __imp__wcsrchr,该符号在函数 "wchar_t * __cdecl wcsrchr(wchar_t *,wchar_t)" (?wcsrchr@@YAPA_WPA_W_W@Z) 中被引用 xxxxxxx xxxxxxxxxxxxxxxxxxxxstrmbasd.lib(dllentry.obj) 1html

 

解决方案:bash

忽略依赖库:libcmtd.lib、msvcrtd.lib函数

 

for _AFXDLL builds 就这样改: C/C++->Code Generation->Multithread DLL (即实现/MD选项)在Preprocessor中定义_AFXDLL, PROJECT->SETING->C/C++->PREPROCESSOR->定义 _AFXDLL,完毕。若是它提示:fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds 就这样改: C/C++->Code Generation->Multithread DLL (即实现/MD选项)

 

 

 

 

参考:http://www.07net01.com/program/332279.htmlui

在静态库中使用MFC致使库冲突,找到一个或多个多重定义的符号

 

喜欢本文请打赏,一毛两毛也是个意思,么么哒
支F宝帐号:2363891614@qq.com
spa