[Coco] Question about compiling C in OS-9
Bob Devries
devries.bob at gmail.com
Tue Apr 13 02:59:45 EDT 2010
As far as I remember, the original unmodified C compiler was hard coded to
use /d1/LIB as the location for cstart.r and clib.l.
I *think* there's a switch in the cc1 syntax to allow for use of a user
provided cstart.r, so you should be able to specify the path/filename to
cstart.r on the command line, in a similar fashion to specifying the
path/filename to clib.l by using -l=path/filename in the command line. Check
the manuals for the specifics. They are on maltedmedia ftp.
Regards, Bob Devries
--
Besides a mathematical inclination, an exceptionally good mastery of one's
native tongue is the most vital asset of a competent programmer.
Edsger W.Dijkstra, 18 June 1975
----- Original Message -----
From: "Todd Wallace" <dragonbytes at cox.net>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Tuesday, April 13, 2010 8:42 AM
Subject: [Coco] Question about compiling C in OS-9
>
> Hey all,
>
> I'm trying to figure out how to use this microware C compiler for OS-9.
> But I am stumped as to how to resolve this error. If you aren't in to C
> on OS-9, just disregard this. Below is my little test program and the
> output from the compiler. If anyone could shed some light on what I'm
> doing wrong, I'd appreciate it. Thanks :-)
>
> #include "/X1/DEFS/stdio.h"
>
> main(argc,argv)
> {
> printf"testing";
> }
>
> This is the output I get when trying to compile it:
>
> {Term|02}/X1/SOURCES:cc1 test.c
> CC1 VERSION RS 01.00.00
> COPYRIGHT 1983 MICROWARE
> REPRODUCED UNDER LICENSE
> TO TANDY
> 'test.c'
> c.prep:
> c.pass1:
> c.pass2:
> c.opt:
> c.asm:
> c.link:
> Unresolved references:
> main cstart_a in /dd/lib/cstart.r
> linker fatal: unresolved references
>
>
> - Todd Wallace
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list