Re: [cc65] Include paths?

From: Greg King <gngking1erols.com>
Date: 2007-02-25 20:47:37
From: Apple2Stuff; on Friday, February 16, 2007; at 03:06 PM -0500
>
> I have an installation of cc65 under Cygwin;
>
> actual paths:
> lib     - /lib/cc65/lib
> include - /lib/cc65/include
> samples - /lib/cc65/samples
>
> Makefile rule ...
>
> ... works:
>
> .c.o:
>     @echo $<
>     @$(CC) -Oirs -T --forget-inc-paths --codesize 500 -g -t $(SYS) \
>      -I../include/ $<
>     @$(AS) $(basename $<).s
>
> ... doesn't work:
>
> .c.o:
>     @echo $<
>     @$(CC) -Oirs -T --forget-inc-paths --codesize 500 -g -t $(SYS) \
>      -I/lib/cc65/include/ $<
>     @$(AS) $(basename $<).s
>
> The makefile included with the cc65 source suggests that you set two
> environment variables -- CC65_LIB and CC65_INC.  They both are fixed
> paths.  When I tried to use them in the samples makefile, the compiler
> and linker cannot find the include files or libraries.  If I use
> relative paths (as in the first sample above), then all is well.
>
> ???

Yes, it's weird, because it works, for me!  I created the same installation
that you have.  I tried it with an explicit absolute-path
"-I"; I tried it with no "-I" and an absolute-path CC65_INC.  Both of them
worked.

I used the snapshot version 2.11.9.20070211.  What version of cc65 did you
use?
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Feb 25 20:55:40 2007

This archive was generated by hypermail 2.1.8 : 2007-02-25 20:55:43 CET