开发者

Error: expected primary-expression before "__attribute__"

开发者 https://www.devze.com 2023-04-03 06:52 出处:网络
How to avoid following error:- error: expected primary-expression before \"__attribute__\" Code: #defin开发者_如何学Pythone A(name) __attribute__(name)

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

精彩评论

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