c - 链接 : fatal error LNK1146: no argument specified with option '/MT'

标签 c compiler-errors windows-xp visual-studio-2019

我正在使用 Visual Studio 2019 并尝试编译与 Windows XP 32 位兼容的程序。

当我第一次在我的虚拟机上运行我的 .exe 时,它​​说它与 Win32 不兼容。 然后我将平台工具集更改为 Visual Studio 2017 - Windows XP (v141_xp)。 现在它说我缺少 VCRUNTIME140d.dll,按照说明将我的运行时库更改为/MT,我得到了标题中所述的错误。

如有任何建议,我们将不胜感激。

最佳答案

VCRUNTIME140d.dll 是 Visual C++ Redistributable for Visual Studio 2015 .你需要下载安装。这是 DLL 的调试版本。您必须在 Release 模式下编译。

关于c - 链接 : fatal error LNK1146: no argument specified with option '/MT' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58404886/

相关文章:

c - 抛出总线错误,不明白为什么

c - 数组输出错误

java - 奇怪的编译问题

c# - 使用 block 时的编译器错误

c++ - 从串口读取 C++

c++ - 在 C++ 中使用 C 风格的 struct/typedef

c++ - if( !(s & i) ) 和 if( s&i == 0 ) 有什么区别?

php - Eclipse PHP(PDT): App::make(Filesystem::class) = Syntax Error unexpected class

windows-xp - Windows SideBySide 如何工作?有任何文档吗?

vb6 - TrackPopupMenuEx 和 TrackPopupMenu 窗口 API 之间有什么区别?