Apr 29, 2016
03:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 29, 2016
03:01 PM
I feel dumb asking this question. It is more of a C language question but I can't find a good answer from online search. I am using the PSoC5LP GCC compiler.
I create a new .C file in an existing project. When I declare a new variable as uint8 or uint16, it is flagged "unknown type name 'uint8'. " If I declare it as int, the error goes away. When I open other auto generated .C files, they have uint8 and uint16 variables.
Why can I not declare unsigned and size in a c file?
Solved! Go to Solution.
1 Solution
Apr 30, 2016
11:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 30, 2016
11:49 AM
It seems that either #include "cytypes.h" or #include "project.h" solves the problem. Thanks to both of you.
4 Replies