NASM Forum > Using NASM
nasm: fatal: unable to open include file
MediocreVeg1:
I've seen some other questions regarding this, but none of them seem to help.
My NASM directory is:
--- Code: ---NASM/
test.asm
include/macros/
loops.inc
consoleIO.inc
--- End code ---
my consoleIO.inc file includes my loops.inc file and my test.asm file includes both, but when i try to assemble test.asm it says:
--- Code: ---include/macros/consoleIO.inc:3: fatal: unable to open include file `loops.inc'
--- End code ---
Not sure if this information is needed, but I'm running my NASM on a Xubuntu VM and its version is 2.14.02. Thanks in advance :)
debs3759:
Please post the relevant line of your .asm file so we cab see how you are declaring it. Nasm needs the relative path to the include file.
MediocreVeg1:
--- Code: ---%include "include/macros/consoleIO.inc"
%include "include/macros/loops.inc" ; Lines 1 and 2
--- End code ---
MediocreVeg1:
UPDATE: So I tried including loops.inc with the absolute path, and it actually worked. But this just seems unnecessary and could cause issues in the future where i would have to change the absolute path every single time. Isn't there a proper way to include relative path?
debs3759:
I would have expected that to work, but I keep include files in the same directory as my asm files, so am unsure. Do you know whether it worked right in older versions of nasm?
Navigation
[0] Message Index
[#] Next page
Go to full version