Re: [cc65] 2.13 problem atari.lib?

From: Daniel Serpell <daniel.serpell1gmail.com>
Date: 2013-02-27 19:51:46
Hi!,

On Wed, Feb 27, 2013 at 11:08 AM, Dan Winslow <dwinslow@aiminstitute.org> wrote:
> Hi Folks. I recently restarted coding in cc65, and have installed 2.13 on a
> Windows 7 box. In testing, I ran across a strange issue :
>
> #include <stdio.h>
> int main()
> {
>     printf("hi there, %s\n","dan");
>     return 0;
> }
>
>
> compiled with
> cl65 test.c -t atari -o test.com -Osir

The "cl65" program is sensitive to the order of arguments, the correct command
line is:
  cl65 -t atari -Osir -o test.com test.c

Your example don't work because test.c is compiled to a c64 (default) target
and then linked to the atari runtime.... not good :-)

Also, in the atari target, the program exits to DOS, so if you don't use a
comand-line DOS you don't see the output. Try loading in bw-dos or
spartaDOS, or simply adding a "while(1);".

    Daniel.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Feb 27 19:51:57 2013

This archive was generated by hypermail 2.1.8 : 2013-02-27 19:52:01 CET