Cr4mmer
(usa Ubuntu)
Enviado em 05/03/2010 - 21:21h
Pessoal estou estudando C , fiz um programa para calcular a média porém na hora de compilar ele não compila... Da erro eu já importei a biblioteca conio.h que peguei aqui mesmo no vivaolinux...
Os erros são:
[root@Marcelo-Moraes-PC Marcelo]# gcc programasoma.c -o programasoma
/tmp/ccJMwIVW.o: In function `initconio':
programasoma.c:(.text+0xa): undefined reference to `initscr'
programasoma.c:(.text+0xf): undefined reference to `start_color'
programasoma.c:(.text+0x60): undefined reference to `init_pair'
programasoma.c:(.text+0xa1): undefined reference to `stdscr'
programasoma.c:(.text+0xac): undefined reference to `wbkgd'
programasoma.c:(.text+0xbd): undefined reference to `stdscr'
programasoma.c:(.text+0xcc): undefined reference to `wcolor_set'
programasoma.c:(.text+0xd3): undefined reference to `stdscr'
programasoma.c:(.text+0xe5): undefined reference to `wattr_off'
/tmp/ccJMwIVW.o: In function `endconio':
programasoma.c:(.text+0xfa): undefined reference to `endwin'
/tmp/ccJMwIVW.o: In function `clrscr':
programasoma.c:(.text+0x11a): undefined reference to `stdscr'
programasoma.c:(.text+0x125): undefined reference to `wbkgd'
programasoma.c:(.text+0x137): undefined reference to `stdscr'
programasoma.c:(.text+0x149): undefined reference to `wattr_on'
programasoma.c:(.text+0x152): undefined reference to `stdscr'
programasoma.c:(.text+0x164): undefined reference to `wattr_off'
programasoma.c:(.text+0x16b): undefined reference to `stdscr'
programasoma.c:(.text+0x173): undefined reference to `wclear'
/tmp/ccJMwIVW.o: In function `textcolor':
programasoma.c:(.text+0x1a2): undefined reference to `pair_content'
programasoma.c:(.text+0x217): undefined reference to `stdscr'
programasoma.c:(.text+0x226): undefined reference to `wcolor_set'
programasoma.c:(.text+0x23e): undefined reference to `stdscr'
programasoma.c:(.text+0x250): undefined reference to `wattr_on'
programasoma.c:(.text+0x263): undefined reference to `stdscr'
programasoma.c:(.text+0x275): undefined reference to `wattr_off'
/tmp/ccJMwIVW.o: In function `textbackground':
programasoma.c:(.text+0x2a4): undefined reference to `pair_content'
programasoma.c:(.text+0x319): undefined reference to `stdscr'
programasoma.c:(.text+0x328): undefined reference to `wcolor_set'
/tmp/ccJMwIVW.o: In function `gotoxy':
programasoma.c:(.text+0x350): undefined reference to `stdscr'
programasoma.c:(.text+0x35a): undefined reference to `wmove'
/tmp/ccJMwIVW.o: In function `wherex':
programasoma.c:(.text+0x36c): undefined reference to `stdscr'
programasoma.c:(.text+0x378): undefined reference to `stdscr'
programasoma.c:(.text+0x38d): undefined reference to `stdscr'
programasoma.c:(.text+0x399): undefined reference to `stdscr'
/tmp/ccJMwIVW.o: In function `wherey':
programasoma.c:(.text+0x3bb): undefined reference to `stdscr'
/tmp/ccJMwIVW.o:programasoma.c:(.text+0x3c7): more undefined references to `stdscr' follow
/tmp/ccJMwIVW.o: In function `main':
programasoma.c:(.text+0x4bf): undefined reference to `wgetch'
collect2: ld returned 1 exit status
[root@Marcelo-Moraes-PC Marcelo]# ./programasoma
bash: ./programasoma: Arquivo ou diretório não encontrado
[root@Marcelo-Moraes-PC Marcelo]#