[Coco] Question about compiling C in OS-9

Boisy G. Pitre boisy at tee-boy.com
Tue Apr 13 08:37:14 EDT 2010


Todd,

The error from the linker is stating that main is an unresolved reference, and it s being referenced from the psect named "cstart_a" which resides in /dd/lib/cstart.r.

Do you have a main function in your test.c program? If not, you need one.

Boisy

On Apr 12, 2010, at 10:07 PM, Todd Wallace wrote:

> Tried what you suggested Stephen.  Same error in the end.  I have both cstart.r and clib.l in /DD/LIB.  the captial L flag says it was invalid (linker fatal: unknown option -L), so i did the lowercase -l and heres the output:
> 
> {Term|02}/X1/SOURCES:cc1 test.c -l=/DD/LIB/clib.l
> 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
> 
> 
> On Apr 12, 2010, at 10:38 PM, Stephen Castello wrote:
> 
>> cc1 test.c -L=[path]/clib.l
>> where [path] is the directory path to clib.l
>> See C-Compiler manual page 1-13.
>> 
>> -- 
>> 
>> Stephen
>> 
>> Documentation; The worst part of programming.
>> 
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
> 
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco

--
Boisy G. Pitre
http://www.tee-boy.com/




More information about the Coco mailing list