zxbasic icon indicating copy to clipboard operation
zxbasic copied to clipboard

[Bug]: Relative includes in zxbasm doesn't work outside of asm folder

Open rtorralba opened this issue 2 months ago • 0 comments

Contact Details

@juntelart

Compiler version

v1.18.3

What happened?

Having an include like the following:

#include once "../../assets/fx/fx.asm"

And I try to compile the asm file (that has the include) from the same folder as asm is, it workx correctly.

zxbasm -t -o out.tap file.asm

But if I compile from other directory, for example, parent, says that don't find the include:

cd ..; zxbasm -t -o out.tap boriel/file.asm

Error and Warning messages

error: file 'boriel/../../assets/fx/fx.asm' not found

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

rtorralba avatar Nov 04 '25 19:11 rtorralba