This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ucos ii and c++ compiler

Hello,
I'm trying to move a c project in c++. I just tried to change extension to main.c to main.cpp but I get an error including ucos_ii.h at OsTaskCreateExt and I cannot find what i going wrong with the function declaration.
Can anyone help me?
Thanks
Michele

Parents Reply Children
  • "Can it be that "task" is not declared?"

    In a function pointer theclaration:

    STaskCreateExt(void (*task)(void *pd), ..
    


    "task" is just an arbitrary name for this parameter, just as:

    int sum(int a,int b);
    


    the parameter names a and b are arbitrary names.

    It will not be problematic unless "task" is a reserved keyword, or possibly the name of a data type.