0
// Sting for the Name
extern const PROGMEM char name[];

//Data structure of the Heap

typedef struct
{
  AllocStrategies strategy;
  uint16_t size;
  MemAddr start;
  MemDriver* driver;
  const PROGMEM char name[];
}Heap;

expected '=', ',', ';', 'asm' or '__ attribute__' before 'char'

Why do i get this error message twice?

eddy
  • 73
  • 8

1 Answers1

4

You forgot to include a file:

#include <avr/pgmspace.h>

The PROGMEM attribute that allows you to allocate a const variable in program space is defined there.

You are getting this error message twice because you are using PROGMEM twice.

tofro
  • 5,640
  • 14
  • 31