Re: [cc65] Linker error

From: Ullrich von Bassewitz <>
Date: 2004-05-14 11:53:47

On Fri, May 14, 2004 at 12:11:57AM -0400, Apple2Stuff wrote:
> I checked the ld65 docs and it specifies that the -C and -t are mutually
> exclusive.
> I guess the real question is why does cl65 allow it?

Because cl65 is smart:-) If you specify both, the target system is passed to
the compiler and assembler, while the linker config is passed to the linker.

> I want to produce debugging info. cl65 does not support --dbgfile but ld65
> does.
> If I don't use -t with ld65 then the linker complains it can't find the
> library routines.
> If I don't use -C then I can't use the modifcations I have made to the
> configuration file to allow the linker to fit everything in the memory map I
> am using..
> catch 22?

No. You just have to specify the libraries you want the linker to bind to the
executable. If no target is given (and you cannot give a target because of
-C), the linker is not able to figure that out by himself.

If you give the debug option to cl65 it will show you the command lines used
to call the other programs. You can see which libraries are used from that. Or
you can read the docs:-)



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri May 14 11:53:51 2004

This archive was generated by hypermail 2.1.8 : 2004-05-14 11:53:57 CEST