chipKIT® Development Platform

Inspired by Arduino™

Error using uint8_t with mpide-022

Created Thu, 09 Jun 2011 10:09:45 +0000 by paolo


Thu, 09 Jun 2011 10:09:45 +0000

I'm currently porting an application to chipKit uno. In the code I used uint8_t as type, but when compiling using mpide-022 I get this error:

" error: expected specifier-qualifier-list before 'uint8_t'"

Does anybody know what the reason is? Do I have to include any file?

The same is true for int8_t int16_t and so on.

Thanks for any response. Paolo.


Thu, 09 Jun 2011 10:31:49 +0000

The expanded C types are usually in #include <stdint.h> (Although: I don't see this explicitly included by anything in either the arduino or mpide source, and a quick test had my sketch containing uint8_t compile just fine for either uno or regular uno, without any includes.) (Sometimes an error like this means that there is a missing semicolon or something in whatever code precedes the uint8_t declaration...)


Thu, 09 Jun 2011 11:58:27 +0000

Thanks. This fixed the problem.