‘action’的存储大小未知



编译时遇到以下错误。

[root@centos-dh1 interrupt]# make
gcc -g -O2 -Wall -std=c99   -c -o interrupt.o interrupt.c
interrupt.c: 在函数‘s_catch_signals’中:
interrupt.c:33: 错误:‘action’的存储大小未知
interrupt.c:38: 警告:隐式声明函数‘sigemptyset’
interrupt.c:39: 警告:隐式声明函数‘sigaction’
interrupt.c:33: 警告:未使用的变量‘action’
make: *** [interrupt.o] 错误 1
[root@centos-dh1 interrupt]# vi Makefile
[root@centos-dh1 interrupt]#

关闭std=c99模式后就正常了。

[root@centos-dh1 interrupt]# make
gcc -g -O2 -Wall   -c -o interrupt.o interrupt.c
gcc -lzmq  interrupt.o   -o interrupt

不知道是什么原因。先记录在这里,以后有时间再想想。



本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部