From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-01-02 22:58:12
On Thu, Jan 02, 2003 at 10:46:22PM +0100, Groepaz wrote: > Unresolved export: `main'". out of curiosity, if i use "-t c64" instead of > "-C lunix.cfg" the error disappears (producing a useless output ofcoz). I have never tried that myself (I'm just the programmer:-), but "main" is an export, which means that it is your program that needs to export a label called "main". If I understand that correctly, "main" is the label called by the Lunix loader to start a program. So just add a label "main" to the beginning of your startup code, export it, and things should start working. > oh and related to that... maybe there should be a skeleton crt0.o and a > machine-independent none.lib... its a bit odd that right now not even the > runtime-library (which is kindof required to use the c-compiler :=P) gets > linked when you compile a program for the "none" target..... i would expect > the compiler to produce a working, plain raw "linear" binary when no specific > memory config (and startup) is given.... well, atleast it shouldnt be > necessary to compile the runtime-lib yourself to compile anything at all :) When using the "none" target, nothing will really work, so I'm not sure if linking against some parts of the runtime library will help. Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-01-02 22:58:17 CET