Page 1 of 1

Compiling cocoOS using SDCC

PostPosted: Sat Sep 15, 2018 6:29 am
by adityaxa
Hi,

Trying to compile cocoOS using SDCC for STM8S, am having compiler error in os_task.c

/Users/adityaxavier/Development/STM/CocoOS/Libraries/cocoOS/src/os_task.c:77: syntax error: token -> 'tcb' ; column 7
/Users/adityaxavier/Development/STM/CocoOS/Libraries/cocoOS/src/os_task.c:80: error 20: Undefined identifier 'task'
/Users/adityaxavier/Development/STM/CocoOS/Libraries/cocoOS/src/os_task.c:80: error 47: indirections to different types assignment
from type 'struct tcb near* fixed'
to type 'int fixed'
/Users/adityaxavier/Development/STM/CocoOS/Libraries/cocoOS/src/os_task.c:81: error 20: Undefined identifier 'task'
/Users/adityaxavier/Development/STM/CocoOS/Libraries/cocoOS/src/os_task.c:81: error 27: Pointer required
/Users/adityaxavier/Development/STM/CocoOS/Libraries/cocoOS/src/os_task.c:82: error 20: Undefined identifier 'task'
/Users/adityaxavier/Development/STM/CocoOS/Libraries/cocoOS/src/os_task.c:82: error 27: Pointer required


Please advise. Compiling using IAR works fine, however it doesn't work in SDCC.

Re: Compiling cocoOS using SDCC

PostPosted: Tue Oct 16, 2018 12:13 pm
by EmmittNye
Is compiling using SDCC supposed to work?