1、error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.
答案:
点击链接进入微软官网下载相应语言的MFC版本,可参考
https://jingyan.baidu.com/article/ff42efa916aca5c19e22029a.html
2、
错误 1 error LNK2005: _free 已经在 libcmt.lib(dbgheap.obj) 中定义 MSVCRT.lib
错误 2 error LNK2005: _malloc 已经在 libcmt.lib(dbgheap.obj) 中定义 MSVCRT.lib
答案:
如果有一堆的重定义错误发生在同一个lib中,而且跟它冲突的也是同一个lib,那么这个两个lib的功能应该是一样的,可以2选一,只要在“忽略特定的库”内填入需要忽略的库。
项目属性-配置属性-链接器-输入-忽略特定的库:libcmt.lib
项目属性-配置属性-常规-MFC的使用:在共享 DLL 中使用 MFC
3、 CMake Error at F:/New_try/lib/caffe/cmake/lint.cmake:33 (list):string sub-command STRIP requires four arguments.
答案:参照下边这个链接:加双引号
https://stackoverflow.com/questions/26585513/cmake-error-with-string-sub-command-strip-requires-two-arguments
4、遇到错误: error MSB6006: “cmd.exe”已退出,代码为 1。 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 lint
先看.log文件里这句报错上边的话,会发现有其他错误,逐个解决上边的错。
采纳链接
https://blog.youkuaiyun.com/shuaihj/article/details/17071351
https://blog.youkuaiyun.com/stoneboy100200/article/details/8216257#commentBox
https://stackoverflow.com/questions/26585513/cmake-error-with-string-sub-command-strip-requires-two-arguments