Jaswant Kumar
Jaswant Kumar

Reputation: 1

How to install and setup Irvine library in vs code 2019 for assembly language

Why is the Irvine library is not linking in VS code 2019 (blue version) for assembly language?

I tried to set up the Irvine library in VS code 2019 (blue version) for assembly language. Everything was okay, but when I wrote the program, that printed 1 to 15, but it showed errors like Irvine is not linked.

Upvotes: 0

Views: 1707

Answers (2)

Raffaul
Raffaul

Reputation: 1

The answer is that VS Code doesn't support x86 Irvine library but Microsoft Visual Studio does.

Upvotes: 0

smadi0x86
smadi0x86

Reputation: 41

I will suppose you're using masm32 as your assembler, to properly set up your MASM project with Irvine32 in Visual Studio, follow these steps:

Download and Prepare Irvine32 Library:

Check Build Customization:

  • Right-click your project in Visual Studio, select Build Dependencies > Build Customizations.
  • Ensure the MASM option (.targets, .props) is checked.

Build Customizations

Set .asm File Properties:

  • In Solution Explorer, right-click your .asm file, choose Properties and confirm Item Type is set to Microsoft Macro Assembler.

File Item Type

Configure Build Settings:

  • Right-click your project, select Properties.
  • Under Microsoft Macro Assembler > General, set Include Paths to C:\Irvine.

Include Paths

  • In Linker > General, set Additional Library Directories to C:\Irvine.

Additional Library Directories

  • In Linker > Input, add Irvine32.lib to Additional Dependencies.

Additional Dependencies

Upvotes: 1

Related Questions