Re: [cc65] Compile problem

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-12-10 11:19:26


Hi!

On Sun, Dec 09, 2001 at 05:01:03PM +0100, groepaz wrote:
> oh btw UZ.... there's a little flaw in the assembler (maybe in the
> compiler aswell) related to the "include" directive and relative
> paths... looks like always uses the location of the directory where
> ca65 has been run to complete relative pathes in any files (rather
> than the location of the file were the include occurs) ... this kinda
> makes it annoying to write general include files (which in turn,
> include other files etc) except you use absolute pathes.

You may want to use the "-I directory" option to add an include search path.
Include files with relative paths are searched relative to any given include
directory and relative to the current directory (because "." is added to the
search path when the compiler/assembler starts).

I think both options (searching relative to the directory where the include
file resides vs. searching relative to the current directory) may be confusing
sometimes. And there is even a third option: Search relative to the directory
where the main source file is located. Using -I should solve all these
troubles.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET