Code Monkey home page Code Monkey logo

Comments (8)

cocoOS avatar cocoOS commented on May 31, 2024

Do you have uint8_t and uint16_t in your compiler libs? I guess you are missing an include

from cocoos.

adityaxavier avatar adityaxavier commented on May 31, 2024

You are correct about the os_msgqueue however os_task.c has a different error.

from cocoos.

ZanoZ avatar ZanoZ commented on May 31, 2024

You are correct about the os_msgqueue however os_task.c has a different error.

maybe you should check what happens in os_task.c line 74,
in my file it is "void os_task_init( void ) {", should not have any word like " token -> 'tcb' ;"

from cocoos.

cocoOS avatar cocoOS commented on May 31, 2024

Have you solved this?
I'm sorry I haven't had time to look into this.

from cocoos.

midnight-wonderer avatar midnight-wonderer commented on May 31, 2024

@ZanoZ I believe "token ->" came from the SDCC compiler itself.
In the compilation process, the compiler will parse and "tokenize" characters into "tokens", hence the message as shown.

The error here reported as line 74 potentially refers to "tcb" on line 77.
The error about "task" on line 77 potentially refers to "task" on line 80.
The line shift might be due to the erroneous internal working of the preprocessor and error reporting module of the compiler.

from cocoos.

midnight-wonderer avatar midnight-wonderer commented on May 31, 2024

Maybe, just maybe, the compiler got confused on the "tcb" token because of

typedef struct tcb tcb;

in os_task.h

from cocoos.

ZanoZ avatar ZanoZ commented on May 31, 2024

well, the IDE I use is MPLABX and the compiler is xc8 V1.4x, I don't have faced with this error . I don't know adityaxavier have solved the problem or not.
Thanks MidnightWonderer for you comment.
I have already compiled the code successful, But still in debuging...

from cocoos.

matteofranceschini avatar matteofranceschini commented on May 31, 2024

@adityaxavier are you sure that the compiler has everything it needs in the makefile? it looks like it is missing some files...

from cocoos.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.