[cc65] unresolved externals in current SVN version

From: Christian Groessler <chris1groessler.org>
Date: 2010-06-25 23:36:44
Hi,

I compile a simple program

--------
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
#ifdef MALLOC
        void *p = malloc(123);
#endif
        printf("Hello World\n");
        return 0;
}
--------

for the Atari and I get

--------
$ cl65 -t atari -o hello.com hello.c 
Unresolved external `_printf' referenced in:
  hello.s(13)
Unresolved external `zerobss' referenced in:
  crt0.s(14)
ld65: Error: 2 unresolved external(s) found - cannot create output file
$
--------

I seem to remember there were some changes with regard to the compiler 
installation directory. I looked at the mailing list archives but I didn't 
find the discussion about it. (Hint: A search capability on the ml 
archives would be nice :-))

I have an "installation" as I always had: I have a local svn sandbox where 
I build from source and then set PATH, CC65_INC, LD65_LIB, and LD65_OBJ 
accordingly.

It seems it still finds atari.lib (it has a reference to crt0.s) but 
somehow it misses the externals.

regards,
chris

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jun 25 23:31:29 2010

This archive was generated by hypermail 2.1.8 : 2010-06-25 23:31:33 CEST