Visual Studio 2015的项目当使用Visual Studio 2019打开时碰到问题
D:\work\cs\c++\vs2019\calculator_vc\calculator\calculator\calculator.vcxproj : warning : 无法找到 Visual Studio 2010 (v100) 的生成工具。若要使用 Visual Studio 2019 (v142) 生成工具进行生成,请单击“项目”菜单或右键单击解决方案,然后选择“重定向解决方案...”。安装 Visual Studio 2010 (v100) 可使用 Visual Studio 2010 (v100) 生成工具进行生成。
解决办法:
右键calculator项目, 点击【属性】,在【配置属性】-->【链接器】-->【输入】-->【附加依赖项】中加入 legacy_stdio_definitions.lib
1>------ 已启动生成: 项目: calculator, 配置: Debug Win32 ------
1>tomcrypt.lib(md5.obj) : warning LNK4099: 未找到 PDB“vc100.pdb”(使用“tomcrypt.lib(md5.obj)”或在“D:\work\cs\c++\vs2019\calculator_vc\calculator\Debug\vc100.pdb”中寻找);正在链接对象,如同没有调试信息一样
1>tomcrypt.lib(sha1.obj) : warning LNK4099: 未找到 PDB“vc100.pdb”(使用“tomcrypt.lib(sha1.obj)”或在“D:\work\cs\c++\vs2019\calculator_vc\calculator\Debug\vc100.pdb”中寻找);正在链接对象,如同没有调试信息一样
1>tomcrypt.lib(sha256.obj) : warning LNK4099: 未找到 PDB“vc100.pdb”(使用“tomcrypt.lib(sha256.obj)”或在“D:\work\cs\c++\vs2019\calculator_vc\calculator\Debug\vc100.pdb”中寻找);正在链接对象,如同没有调试信息一样
1>tomcrypt.lib(crypt_argchk.obj) : warning LNK4099: 未找到 PDB“vc100.pdb”(使用“tomcrypt.lib(crypt_argchk.obj)”或在“D:\work\cs\c++\vs2019\calculator_vc\calculator\Debug\vc100.pdb”中寻找);正在链接对象,如同没有调试信息一样
1>calculator.vcxproj -> D:\work\cs\c++\vs2019\calculator_vc\calculator\Debug\calculator.exe
1>已完成生成项目“calculator.vcxproj”的操作。
参考
https://www.cnblogs.com/wainiwann/p/3446187.html
C6262 错误
https://blog.csdn.net/mxclxp/article/details/7991127
warning C4273: dll 链接不一致
1>register.cpp
1>D:\download\C++\crypt\LibTomCrypt\others\libtomcrypt-master\src\headers\tomcrypt_cfg.h(26,45): warning C4273: “malloc”: dll 链接不一致
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt_malloc.h(97,15): message : 参见“malloc”的前一个定义
1>D:\download\C++\crypt\LibTomCrypt\others\libtomcrypt-master\src\headers\tomcrypt_cfg.h(27,55): warning C4273: “realloc”: dll 链接不一致
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt_malloc.h(122,15): message : 参见“realloc”的前一个定义
1>D:\download\C++\crypt\LibTomCrypt\others\libtomcrypt-master\src\headers\tomcrypt_cfg.h(28,55): warning C4273: “calloc”: dll 链接不一致
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt_malloc.h(62,15): message : 参见“calloc”的前一个定义
1>D:\download\C++\crypt\LibTomCrypt\others\libtomcrypt-master\src\headers\tomcrypt_cfg.h(29,40): warning C4273: “free”: dll 链接不一致
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt_malloc.h(85,14): message : 参见“free”的前一个定义
1>D:\download\C++\crypt\LibTomCrypt\others\libtomcrypt-master\src\headers\tomcrypt_cfg.h(31,113): warning C4273: “qsort”: dll 链接不一致
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt_search.h(56,23): message : 参见“qsort”的前一个定义
1>D:\download\C++\crypt\LibTomCrypt\others\libtomcrypt-master\src\headers\tomcrypt_cfg.h(35,41): warning C4273: “clock”: dll 链接不一致
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\time.h(138,26): message : 参见“clock”的前一个定义
在编译libtomcrypt 时, 修改设置
参考
https://blog.csdn.net/visualcatsharp/article/details/3866349
https://blog.csdn.net/net_wolf_007/article/details/5182376