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;

'char' 之前应有 '='、','、';'、'asm' 或 '__ attribute__'

为什么我两次收到此错误消息?

4

1 回答 1

4

您忘记包含一个文件:

#include <avr/pgmspace.h>

PROGMEM允许您const在程序空间中分配变量的属性在此处定义。

您收到此错误消息两次,因为您使用PROGMEM了两次。

于 2017-11-25T17:09:38.087 回答