Re: [cc65] Problem with compiling simple C programs

From: Groepaz <groepaz1gmx.net>
Date: 2004-07-26 13:32:02
On Monday 26 July 2004 13:04, FanDome123@aol.com wrote:
> and the program does NOT generate a "PRG" file (at least i cant see one.)
> Only the myfile.s and myfile.c are there in the directory.
> There should be a file with no file type, which is the PRG if I remember 
> correctly from an older compiling of another program.

try using cl65 instead of cc65 :) cc65 only compiles C to ASM, so all is 
correct like it is :=P

> What is the proper way to declare new functions, even ones that don't return 
> a value?

void myfunc(void); // this is the prototype

void myfunc(void)
{
	// this is the function
}

int main(void)
{
	myfunc();
}

gpz
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jul 26 13:31:41 2004

This archive was generated by hypermail 2.1.8 : 2004-07-26 13:31:50 CEST