编译错误<command-line>:0:1: error: macro names must be identifiers的解决办法

编译时报错<command-line>:0:1: error: macro names must be identifiers

原因:makefile中出现了空的宏开关。-D${Variable}中的Variable为空了

检查makefile文件,应该将-D后面的参数修改为不为空

猜你喜欢

转载自www.cnblogs.com/huoguonaicha/p/12811107.html