Next Previous Contents

3. Search paths

Starting with version 2.10 there are now several search paths for files needed by the linker: One for libraries, one for object files and one for config files.

3.1 Library search path

The library search path contains in this order:

  1. The current directory.
  2. A compiled in library path which is often /usr/lib/cc65/lib on Linux systems.
  3. The value of the environment variable LD65_LIB if it is defined.
  4. The value of the environment variable CC65_LIB if it is defined. Please note that use of this environment variable is obsolete and may get removed in future versions.
  5. Any directory added with the --lib-path option on the command line.

3.2 Object file search path

The object file search path contains in this order:

  1. The current directory.
  2. A compiled in directory which is often /usr/lib/cc65/lib on Linux systems.
  3. The value of the environment variable LD65_OBJ if it is defined.
  4. The value of the environment variable CC65_LIB if it is defined. Please note that use of this environment variable is obsolete and may get removed in future versions.
  5. Any directory added with the --obj-path option on the command line.

3.3 Config file search path

The config file search path contains in this order:

  1. The current directory.
  2. A compiled in directory which is often /usr/lib/cc65/lib on Linux systems.
  3. The value of the environment variable LD65_CFG if it is defined.
  4. Any directory added with the --cfg-path option on the command line.


Next Previous Contents