Chinaunix首页 | 论坛 | 博客
  • 博客访问: 399517
  • 博文数量: 83
  • 博客积分: 2011
  • 博客等级: 大尉
  • 技术积分: 741
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-04 22:51
文章分类

全部博文(83)

文章存档

2009年(83)

我的朋友

分类: LINUX

2009-07-26 09:37:19

编译程序的时候老是出现以下错误,
[root@localhost process]# gcc daemon.c -o daemon
daemon.c: In function ‘init_daemon’:
daemon.c:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
daemon.c:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
daemon.c:56: error: expected ‘{’ at end of input
 
网上查了很久也没有找到解决方法,看了N遍,原来是函数声明时没有加 ; !!!!!!!!!!!!!!
 
写程序时要记得加 ; 号啊!!!!!!!!!!!!
阅读(7514) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~