哇嘎 发表于 2012-4-10 21:20:50

error: macro names must be identifiers

avr studio 4 编译正常的工程拿到avr studio 5 下编译,出现“error: macro names must be identifiers”问题。

哇嘎 发表于 2012-4-10 21:26:34

This error can also occur if you are not following the marco rules

Like

#define 1K 1024 // Macro rules must be identifiers error occurs
Reason: Macro Should begin with a letter, not a number

Change to

#define ONE_KILOBYTE 1024 // This resolves

哇嘎 发表于 2012-9-1 21:35:19

问题解决。

在avr studio 5.0及以上版本中SYMBOLS定义与avr studio 4 中不一样,不需要-D前缀。
页: [1]
查看完整版本: error: macro names must be identifiers