warning: implicit declaration of function ‘typeof’

asm/inline/typeof使用GCC进行编译时提示如下告警:

warning: implicit declaration of function ‘typeof’

错误提示缺少')';


修改方法:

__asm__/__inline__/__typeof__

就可以解决该问题;


或者在gcc的编译参数中去掉std=c99编译选项;

猜你喜欢

转载自blog.csdn.net/wh8_2011/article/details/80478836
今日推荐