5

I'm using Eclipse CDT Mars 4.5.0 20150621-1200 on Linux for a firmware project involving AVR microcontrollers. Eclipse is giving me errors like "Type 'uint8_t' could not be resolved".

I properly added /usr/lib/avr/include to Project properties -> C/C++ General -> Paths and Symbols -> Includes.

When I try to open the declaration of uint8_t in Eclipse I get the following offerings:

enter image description here

This suggests me that Eclipse detected 2 declarations and cannot decide which is the right one. It's strange to me because /usr/include is not featured under Paths and Symbols -> Includes.

How to fix this pain? Thanks!

László Monda
  • 1,647
  • 1
  • 16
  • 29

1 Answers1

1

Have you included inttypes.h?

For most avr-gcc installations, you would need this include statement:

#include <inttypes.h>
bobasaurus
  • 129
  • 1
  • 9