首页 > 其他 > 详细

‘SA_INTERRUPT’ undeclared (first use in this function)的解决办法

时间:2014-04-02 05:40:15      阅读:825      评论:0      收藏:0      [点我收藏+]

APUE练习的时候

编译的时候老是报警,说是未定义 SA_INTERRUPT

jasonleaster@ubuntu:/Ad_Pro_in_Unix/chapter_10$ cc ./pro_10_22.c

./pro_10_22.c: In function ‘main’:
./pro_10_22.c:30:21: error: ‘SA_INTERRUPT’ undeclared (first use in this function)

./pro_10_22.c:30:21: note: each undeclared identifier is reported only once for each function it appears in

纠结了半天,发现是头文件的问题,不要用apue.h,并且一定要include <setjmp.h>

可能是冲突的原因。这里不要include <apue.h>

而是include <setjmp.h>

就可以了。编译正常

‘SA_INTERRUPT’ undeclared (first use in this function)的解决办法,布布扣,bubuko.com

‘SA_INTERRUPT’ undeclared (first use in this function)的解决办法

原文:http://blog.csdn.net/cinmyheart/article/details/22769093

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!