Akash Rana
Akash Rana

Reputation: 3855

NASM unable to open include file asm_io.inc. Doesn't it come with NASM?

I am not able to include the file 'asm_io.inc' in Ubuntu.

I tried it in the follwing way :

%include 'asm_io.inc'

and issued the following command :

sudo nasm -f coff simple.asm

Error :

simple.asm:1: fatal: unable to open include file `asm_io.inc'

After searching on google, I tried variations like :

include 'asm_io.inc'

%include "~//includes//asm_io.inc"

I even searched root directory for file asm_io.inc, but it didn't show up.

But if I do not include the file asm_io.inc in other NASM code the assmebler works fine.

My question :

What am I doing wrong ?

Upvotes: 1

Views: 6257

Answers (1)

Joachim Rohde
Joachim Rohde

Reputation: 6045

I guess you are using some code of Paul Carters tutorial. If this is the case you need to download asm_io.inc from http://pacman128.github.io/pcasm/

Upvotes: 4

Related Questions