You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
不是bug反馈,大概
省流:不要装多个不同版本的 MSVC v143 生成工具
自 e5874b5 更新了MaaDeps之后,一台电脑上MAA编译始终报错,另一台一切正常。
错误大概是说 MaaCore 要用到的 cpr.lib 有一条引用函数找不到。
于是就各种重下依赖、重新手动解压,各种删编译缓存,都不能解决问题。
于是我决定整个烂活,从正常编译的那台电脑上复制所有相关文件过来,看看能不能编译。然后失败了。
不过这也是个好消息,这说明是电脑的环境问题,和MAA无关。同时也是个坏消息,因为这台电脑安装了更多的VS组件,也有更多的其他工具在系统变量里。
于是先对比了一下是不是少了什么VS组件,没有发现,然后在多出来的组件里看看,最可疑也最没用的就是 MSVC v143 - VS2022 C++生成工具 v14.38-17.8 的旧版本了。于是把它卸载了,再编译,就一切正常了。
总之是个很奇怪的问题,毕竟这个电脑上还装了 v142 和 v141 的生成工具,似乎不会互相影响,但 v143 14.38 就会和 v143最新 14.40 产生影响,但是编译其他C++程序时就没有见过这种问题,更新 MaaDeps 之前也正常共存了几个月。
总之总之这个问题就这样解决了。
Beta Was this translation helpful? Give feedback.
All reactions