[C.CC USERS] Compiler erorrs.

Jon Simpson me at jonsimpson.co.uk
Fri Sep 10 10:47:24 BST 2010


Hi Sam,

On Fri, Sep 10, 2010 at 4:40 AM, Sam Ducksworth <sducksworth at gmail.com> wrote:
> I am trying to compile the following for the RCX:
>
> #INCLUDE "LCD.occ"
>
> PROC debug.man ()
>  WHILE TRUE
>    SEQ
>      ?? Sleeping causes us to deschedule
>      sleep (500 * MILLIS)
>      lcd.set.segment (LCD.STANDING)
>      sleep (500 * MILLIS)
>      lcd.set.segment (LCD.WALKING)
> :
>
> PROC main (CHAN BYTE kyb?, scr!, err!)
>  PAR
>    debug.man()
>    foo()
> :

I'll look into this further when I get to the office and check my
suspicions, but at first glance it seems that the #INCLUDE "LCD.occ"
line should be #INCLUDE "rcx/LCD.occ". The MILLIS constant is in
common.occ, so you probably need #INCLUDE "rcx/common.occ" too - all
of the library code lives within an 'rcx' directory in 'lib'.

Cheers,
Jon




More information about the users mailing list