[cc65] Linking problem under Mac OS X 10.5.8

From: AtariBDSM <ataribdsm1gmail.com>
Date: 2010-08-10 11:46:17
Hello everybody

    I'm having difficulties in linking a simple "Hello World" program 
with CC65 under Mac OS X 10.5.8.
The compilation for the following code goes successfully:

#include <stdio.h>

void main(void)
{
 printf("Hello, world!\n");
}

with line:

cl65 -c -t atari hello.c

Linking the program this way:

ld65 -t atari -o hello.com hello.o atari.lib

produces an error:

Piotreks-iMac:helloworld piotrek$ ld65 -t atari -o hello.com hello.o 
atari.lib
Unresolved external `_text' referenced in:
  hello.s(14)
ld65: Error: 1 unresolved external(s) found - cannot create output 
file

    Does anyone know what may be the cause of this problem and how to 
avoid it?

Thanks in advance
    Marek 

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Aug 10 11:46:30 2010

This archive was generated by hypermail 2.1.8 : 2010-08-10 11:46:34 CEST