开发者

Error: expected primary-expression before "__attribute__"

How to avoid following error:-

error: expected primary-expression before "__attribute__"

Code:

#defin开发者_如何学Pythone A(name) __attribute__(name)

If i use this macro as A(name) in my code, I am getting error as expected primary-expression before "__attribute__"


Try:

#define A(name) __attribute__((name))

Since there is no code, I can't say if you are using it properly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜