|
源文件:名字web1.c
#include"stdio.h"
#include"conio.h"
int main()
{
clrscr();
printf("hello,world~");
printf("%c",2);
getch();
return 0;
}
[root@pigeonoo program]# vi web1.c
[root@pigeonoo program]# gcc -o web1 web1.c
web1.c:2:18: conio.h: 没有那个文件或目录
[root@pigeonoo program]# cd /
[root@pigeonoo /]# find -name conio.h
find: ./proc/3995/fd: 没有那个文件或目录
./usr/lib/bcc/include/conio.h
[root@pigeonoo /]# cd /home/pigeonoo/study/program
[root@pigeonoo program]# gcc web1.c -I /usr/lib/bcc/include/ -o web1
/tmp/ccaqLtFg.o(.text+0x11): In function `main':
: undefined reference to `clrscr'
/tmp/ccaqLtFg.o(.text+0x38): In function `main':
: undefined reference to `getch'
collect2: ld returned 1 exit status
[root@pigeonoo program]# |
|