【发布时间】:2015-01-13 08:19:18
【问题描述】:
我无法在 Ubuntu 中包含文件 'asm_io.inc'。
我用以下方式尝试过:
%include 'asm_io.inc'
并发出以下命令:
sudo nasm -f coff simple.asm
错误:
simple.asm:1: fatal: unable to open include file `asm_io.inc'
在谷歌上搜索后,我尝试了以下变体:
include 'asm_io.inc'
%include "~//includes//asm_io.inc"
我什至在根目录中搜索文件 asm_io.inc,但没有显示出来。
但是,如果我没有在其他 NASM 代码中包含文件 asm_io.inc,则汇编程序可以正常工作。
我的问题:
我做错了什么?
【问题讨论】:
-
那么,asm_io.inc 文件到底在您的硬盘上的什么位置?
-
@Michael 块 0x4ff96c0 ;)
-
@Michael 正如我所提到的,我已经安装了 NASM,但仍在搜索 asm_io.inc 并没有产生任何结果。 Acc to U 是否可以安装或我必须在工作目录中手动下载?