Re: [cc65] library search path

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-05-27 20:34:05


On Tue, May 27, 2003 at 03:41:43PM +0200, Groepaz wrote:
> so -I always adds the given path at the start of the existing search list?

No, at the end.

> also where is the CC65_INC added, at the start or the end of the search list?

Additions do only occur at the end of the search list.

> and in which order does all the above take place? 1) init with builtin pathes
> 2) add CC65_INC 3) add pathes given with -I ?!

Ahh, wait! Now I get it - this is a problem with cc65. What should happen is
this:

  1. The current directory is added to the user include search list.
  2. "include" is added to the system include search list (don't ask me
     why).
  3. The system include path (usually /usr/lib/cc65/include) is added to
     the system include search list.
  4. CC65_INC is added to both lists.
  5. Any paths added with -I are added to both lists.

However, the command line is parsed *before* doing 1-4, so any additional
include paths end up in front of the search lists - which is wrong. It is
possible that this worked a long time ago, but the code for 1-4 was moved.
I will fix that for the next version (and 2.9.2 if there will be such a
version). 

BTW: I'm not sure what the purpose of 2. was. Testing new system includes? I'm
really getting old...

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 : 2003-05-27 20:34:29 CEST