L1nux
(usa Slackware)
Enviado em 09/01/2008 - 19:37h
compilei um programa aqui do site
http://www.vivaolinux.com.br/download.php?file=janela.c
artigo-->
http://www.vivaolinux.com.br/artigos/verArtigo.php?codigo=98&pagina=1
ate ai tudo bem mas na hora da lincagem(gcc -s nome_programa.o ) apareceu isso.
janela.o(.text+0x11): In function `main':
: undefined reference to `initscr'
janela.o(.text+0x16): In function `main':
: undefined reference to `start_color'
janela.o(.text+0x24): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x35): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x46): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x57): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x68): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x6d): In function `main':
: undefined reference to `wbkgd'
janela.o(.text+0x80): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x85): In function `main':
: undefined reference to `wattr_on'
janela.o(.text+0x99): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0xac): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0xb1): In function `main':
: undefined reference to `wattr_off'
janela.o(.text+0xc4): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0xc9): In function `main':
: undefined reference to `wattr_on'
janela.o(.text+0xdd): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0xf1): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0x105): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0x119): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0x125): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x12a): In function `main':
: undefined reference to `wgetch'
janela.o(.text+0x140): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x145): In function `main':
: undefined reference to `wattr_off'
janela.o(.text+0x151): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x156): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x196): In function `main':
: undefined reference to `newwin'
janela.o(.text+0x1ac): In function `main':
: undefined reference to `wbkgd'
janela.o(.text+0x1c1): In function `main':
: undefined reference to `wattr_on'
janela.o(.text+0x1d5): In function `main':
: undefined reference to `mvwprintw'
janela.o(.text+0x1ea): In function `main':
: undefined reference to `wattr_off'
janela.o(.text+0x1f8): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x206): In function `main':
: undefined reference to `wgetch'
janela.o(.text+0x214): In function `main':
: undefined reference to `delwin'
janela.o(.text+0x229): In function `main':
: undefined reference to `newwin'
janela.o(.text+0x23f): In function `main':
: undefined reference to `wbkgd'
janela.o(.text+0x253): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x259): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x25f): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x265): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x26d): In function `main':
: undefined reference to `wborder'
janela.o(.text+0x281): In function `main':
: undefined reference to `mvwprintw'
janela.o(.text+0x28f): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x29d): In function `main':
: undefined reference to `wgetch'
janela.o(.text+0x2ab): In function `main':
: undefined reference to `delwin'
janela.o(.text+0x2be): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x2c3): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x2d6): In function `sair':
: undefined reference to `endwin'
collect2: ld returned 1 exit status
[franklindenis@localhost exem]$ clear
[franklindenis@localhost exem]$ gcc -s janela.o
janela.o(.text+0x11): In function `main':
: undefined reference to `initscr'
janela.o(.text+0x16): In function `main':
: undefined reference to `start_color'
janela.o(.text+0x24): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x35): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x46): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x57): In function `main':
: undefined reference to `init_pair'
janela.o(.text+0x68): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x6d): In function `main':
: undefined reference to `wbkgd'
janela.o(.text+0x80): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x85): In function `main':
: undefined reference to `wattr_on'
janela.o(.text+0x99): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0xac): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0xb1): In function `main':
: undefined reference to `wattr_off'
janela.o(.text+0xc4): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0xc9): In function `main':
: undefined reference to `wattr_on'
janela.o(.text+0xdd): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0xf1): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0x105): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0x119): In function `main':
: undefined reference to `mvprintw'
janela.o(.text+0x125): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x12a): In function `main':
: undefined reference to `wgetch'
janela.o(.text+0x140): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x145): In function `main':
: undefined reference to `wattr_off'
janela.o(.text+0x151): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x156): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x196): In function `main':
: undefined reference to `newwin'
janela.o(.text+0x1ac): In function `main':
: undefined reference to `wbkgd'
janela.o(.text+0x1c1): In function `main':
: undefined reference to `wattr_on'
janela.o(.text+0x1d5): In function `main':
: undefined reference to `mvwprintw'
janela.o(.text+0x1ea): In function `main':
: undefined reference to `wattr_off'
janela.o(.text+0x1f8): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x206): In function `main':
: undefined reference to `wgetch'
janela.o(.text+0x214): In function `main':
: undefined reference to `delwin'
janela.o(.text+0x229): In function `main':
: undefined reference to `newwin'
janela.o(.text+0x23f): In function `main':
: undefined reference to `wbkgd'
janela.o(.text+0x253): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x259): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x25f): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x265): In function `main':
: undefined reference to `acs_map'
janela.o(.text+0x26d): In function `main':
: undefined reference to `wborder'
janela.o(.text+0x281): In function `main':
: undefined reference to `mvwprintw'
janela.o(.text+0x28f): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x29d): In function `main':
: undefined reference to `wgetch'
janela.o(.text+0x2ab): In function `main':
: undefined reference to `delwin'
janela.o(.text+0x2be): In function `main':
: undefined reference to `stdscr'
janela.o(.text+0x2c3): In function `main':
: undefined reference to `wrefresh'
janela.o(.text+0x2d6): In function `sair':
: undefined reference to `endwin'
collect2: ld returned 1 exit status
alguem poderia ajudar-me