Chinaunix首页 | 论坛 | 博客
  • 博客访问: 70624
  • 博文数量: 83
  • 博客积分: 1320
  • 博客等级: 中尉
  • 技术积分: 805
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-20 14:54
文章分类

全部博文(83)

文章存档

2010年(83)

我的朋友

分类:

2010-07-23 15:37:12

1.Today , when I write a function in driver:
static void update_clients( )
{
...
}
compile prompt:
cc1: warnings being treated as errors
:26: error: function declaration isn't a prototype
resolved:
add void as follow:
static void update_clients(void )
This is C99 standard.
2. a error in c program
  the header file is written as follow:
  #ifndef __TEST_H
  ...
  #endif
  when compile, a error prompt:
  dereferencing pointer to incomplete type
 
resolved:
     write correct header file.
  #ifndef __TEST_H
  #define __TEST_H
  #endif
 



阅读(279) | 评论(0) | 转发(0) |
0

上一篇:create command prompt

下一篇:work queue

给主人留下些什么吧!~~