This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

error #20: identifier "uint8" undefined

Other Parts Discussed in Thread: CC2650

Hai,

I was working with simple_peripheral project with cc2650. the project was working fine , till I added a .c and .h file in application folder after these files are added, i am getting errors in simple_gatt_profile.h as identifier  "uint8" undefined at compile time.

What should I do to resolve this?

  • The type uint8 is not a built-in type of the C language, like int or short.  It must be supplied with a typedef similar to ...

    typedef unsigned char uint8;

    Such a typedef (and others like it) typically appears in a header file, and you include this header file in your C file.  In your particular case, I don't know which header file supplies uint8.

    Thanks and regards,

    -George