From 72d5d040d8cf4a8079cb0c76f3353ed238880b1d Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 4 Dec 2010 18:13:47 +0000 Subject: [PATCH] Fixed order of -o and -t on the linker command line. git-svn-id: svn://svn.cc65.org/cc65/trunk@4886 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cl65.sgml | 2 +- doc/debugging.sgml | 4 ++-- doc/grc65.sgml | 2 +- doc/intro.sgml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/cl65.sgml b/doc/cl65.sgml index d7c690b9e..1d32677db 100644 --- a/doc/cl65.sgml +++ b/doc/cl65.sgml @@ -245,7 +245,7 @@ into an executable named morse: cc65 -g -Oi -t c64 morse.c ca65 -g morse.s ca65 -g irq.s - ld65 -t c64 -o morse c64.o morse.o irq.o c64.lib + ld65 -o morse -t c64 c64.o morse.o irq.o c64.lib When using cl65, this is simplified to diff --git a/doc/debugging.sgml b/doc/debugging.sgml index cf2df7c54..7f9771286 100644 --- a/doc/debugging.sgml +++ b/doc/debugging.sgml @@ -45,7 +45,7 @@ arbitary addresses), debug interrupt handlers and even debug routines that run inside the 1541 floppy. You may use the label file generated by the linker to make much more use -from the monitor. +from the monitor. @@ -90,7 +90,7 @@ file (I'm usually using a - ld65 -t c64 -Ln hello.lbl -m hello.map -o hello crt0 hello.o c64.lib + ld65 -o hello -t c64 -Ln hello.lbl -m hello.map hello.o c64.lib This will generate a file named hello.lbl that contains all symbols used in diff --git a/doc/grc65.sgml b/doc/grc65.sgml index 05afdbf8b..124190598 100644 --- a/doc/grc65.sgml +++ b/doc/grc65.sgml @@ -241,7 +241,7 @@ contains all of the executable code. Fourth and last step -- linking it together

-$ ld65 -t geos -o test.cvt resource.o geos.o test.o geos.lib +$ ld65 -o test.cvt -t geos resource.o geos.o test.o geos.lib &dquot; - ld65 -t c64 -o hello hello.o text.o c64.lib + ld65 -o hello -t c64 hello.o text.o c64.lib The argument after