Re: [cc65] Relative paths during compilation

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-05-03 11:35:24
Hi!

On Sun, May 02, 2010 at 11:34:33PM +0200, Oliver Schmidt wrote:
> If however I have an asm file bar.s with .include "bar.inc" and
> assemble it from the parent directory as src/bar.s then I _can't_ have
> the assembler find bar.inc by adding -I src.

Maybe I've misunderstood the scenario, but it seems to work here as it should:

-----------------------------------------------------------------------------
uz@trixie:~$ ls
src/
uz@trixie:~$ ls src
t.inc  t.s
uz@trixie:~$ cat src/t.s
        .include "t.inc"
        lda     #$00
uz@trixie:~$ ca65 src/t.s
src/t.s(1): Error: Cannot open include file `t.inc': No such file or directory
uz@trixie:~$ ca65 -I src src/t.s
uz@trixie:~$ ls src
t.inc  t.o  t.s
uz@trixie:~$
-----------------------------------------------------------------------------

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon May 3 11:35:35 2010

This archive was generated by hypermail 2.1.8 : 2010-05-03 11:35:38 CEST