[Coco] Climax C Compiler setup
Walter
zambotti at iinet.net.au
Fri Mar 22 01:41:52 EDT 2019
Found the error in c_prep.
It chops off the last line of every source file.
I did a quick fix by adding a blank line at the end of my code.
Walter
-----Original Message-----
From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Walter
Sent: Friday, 22 March 2019 12:44 PM
To: CoCoList for Color Computer Enthusiasts
Subject: [Coco] Climax C Compiler setup
I'm trying to get the new:
c_prep
ansifront
cc (2.5.2)
>From the Climax_CMDS_40T2S.dsk
to work but c.pass1 is complaining there are now errors in the code.
This can't be the case because I can compile the code with no problem using
CC 2.3.0 and the older c.prep.
The c.pass1 & c.pass2 are identical between the two C environments so I am
suspecting the new c_prep
is screwing things up. I'm not sure if this c_prep is the same as
c.prep19B?
My code is just hello world.
#include <stdio.h>
int main(argc, argv)
int argc;
char **argv;
{
printf("Hello World\n");
return 0;
}
Error is function unfinished:
return 0;
^ (pointing to semicolon)
I have tried changing the main to :
int main(int argc, char **argv)
but no difference.
I have tried cc with and with -A (ansi mode) but still broken.
I'm not sure I have all the latest or correct components.
Does anyone have a pointer to where I can download a working copy of the
latest CC environment?
Walter
--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list