如何在 VS Code 2019 中为汇编语言安装和设置 Irvine 库

问题描述 投票:0回答:1

为什么 Irvine 库未在 VS code 2019(蓝色版本)中链接到 汇编语言

我尝试在 VS code 2019(蓝色版本)中为汇编语言设置 Irvine 库。一切都很好,但是当我编写打印 1 到 15 的程序时,它显示错误,例如 Irvine is not linked 😕

installation masm irvine32
1个回答
0
投票

我假设您使用 wasm32 作为汇编器,要在 Visual Studio 中使用 Irvine32 正确设置您的 MASM 项目,请按照以下步骤操作:

下载并准备 Irvine32 库:

检查构建自定义:

  • 在 Visual Studio 中右键单击您的项目,选择“构建依赖项”>“构建自定义”。
  • 确保选中 MASM 选项(.targets、.props)。

Build Customizations

设置 .asm 文件属性:

  • 在解决方案资源管理器中,右键单击 .asm 文件,选择属性并确认项目类型设置为 Microsoft Macro Assembler。

File Item Type

配置构建设置:

  • 右键单击您的项目,选择属性。
  • 在 Microsoft Macro Assembler > General 下,将 Include Paths 设置为 C:\Irvine。

Include Paths

  • 在链接器 > 常规中,将附加库目录设置为 C:\Irvine。

Additional Library Directories

  • 在“链接器”>“输入”中,将 Irvine32.lib 添加到“附加依赖项”。

Additional Dependencies

© www.soinside.com 2019 - 2024. All rights reserved.