| |
Bago Zonde
Registered: Dec 2010 Posts: 29 |
How to include files in DASM relatively?
Hi guys,
I'm wondering how to include files in DASM relatively? It seems that DASM can only include them within absolute path.
Let's see the example:
main.asm
includes/functions.asm
includes/file-to-include.asm
In main.asm file I have:
include "includes/functions.asm"
And functions.asm file contains:
include "file-to-include.asm"
In this case, while compiling main.asm, DASM cannot find "file-to-include.asm" relatively, it works only when providing absolute path:
include "includes/file-to-include.asm"
I've tried -Idir option, but I'm not sure how it should work. I tried to point includes folder but it won't work.
I'm using DASM 2.20.11 20140304. |
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
try ./includes/file-to-include.asm perhaps? |
| |
soci
Registered: Sep 2003 Posts: 480 |
Command line:
dasm somepath/main.asm -Isomepath/includes
Source:
INCLUDE "functions.asm"
INCLUDE "file-to-include.asm"
Otherwise make sure your working directory is properly set. |
| |
Bago Zonde
Registered: Dec 2010 Posts: 29 |
@Groepaz
I wanted to avoid providing "includes" in the path.
@soci
Haha, thanks soci! It works perfectly! What I missed is that I thought that -Idir is the option switch, not -I, so no wonder -Idirincludes didn't work :D! |