CubeMX2Makefile icon indicating copy to clipboard operation
CubeMX2Makefile copied to clipboard

CubeMX v4.18 - Syntax error: "(" unexpected

Open slee-ensil opened this issue 8 years ago • 1 comments

Not sure if this is the issue of CubeMX or not but as of CubeMX v4.18, the xml file (.cproject) has been changed slightly from __weak="attribute((weak))" to just __weak=attribute((weak))

So you may need to add the missing quots to the C_DEFS string, i.e., C_DEFS = -D__weak="attribute_((weak))" instead of C_DEFS = -D__weak=attribute_((weak))

slee-ensil avatar Nov 28 '16 18:11 slee-ensil

line 64. after C_DEFS = -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" instead of -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__))

menshiyun avatar Dec 26 '16 03:12 menshiyun