|
- #include <unistd.h>
- static int test(int);
- int
- main(void)
- {
- int b=6;
- printf("the fun num is %d\n",test(b));
- return(0);
- }
复制代码
#gcc -g -c file_a.c
file_a.c:2: warning: `test' used but never defined
- static int
- test(int a) {
- printf("%d\n",a);
- return(a);
- }
复制代码
#gcc -g -c fille_b.c
#gcc -o file_a.o file_b.o
这属于基础不过关,请大家帮忙!!:help :help |
|