Chinaunix首页 | 论坛 | 博客
  • 博客访问: 38044
  • 博文数量: 10
  • 博客积分: 236
  • 博客等级: 二等列兵
  • 技术积分: 110
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-20 21:15
文章分类
文章存档

2013年(3)

2012年(7)

我的朋友

分类: LINUX

2012-11-22 21:16:50

These is code file as following:
-----
Add.h
Add.c
Main.c
Head.h
-----

Then, I will Use the Order:[ make ]to compiler my file.
Error:one
[
mrzhangqj@mrzhangqj-Rev-1-0:~/Code/TestC++$ gcc -c Add.c
Add.c: In function ‘add’:
Add.c:5:1: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
Add.c: In function ‘printAdd’:
Add.c:11:1: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
]


Error:two
[
makefile:2: *** missing separator.  Stop.
]


solution:
1:gcc -I /usr/include -c Add.c
2:Tab

PIC:

so easy to solve!

阅读(1084) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~