[Coco] Question about compiling C in OS-9

Dave Kelly daveekelly1 at embarqmail.com
Tue Apr 13 00:39:41 EDT 2010


On 04/12/2010 09:38 PM, Stephen Castello wrote:
> On Mon, 12 Apr 2010 18:42:43 -0400, Todd Wallace<dragonbytes at cox.net>
> had a flock of green cheek conures squawk out:
>
>>
>> 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
>
> cc1 test.c -L=[path]/clib.l
> where [path] is the directory path to clib.l
> See C-Compiler manual page 1-13.
>

Run: ( I think this is correct - its been 20 years.)
grep -necstart_a directory-with-libraries

See what pops up

Dave


-- 
......rolling down the road in my beat up hippy bus.
It usually gets me to where I want to go.
Its yellow.



More information about the Coco mailing list