LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-12-2003, 10:56 PM   #1
ThE_DeaD
LQ Newbie
 
Registered: Jul 2003
Posts: 24

Rep: Reputation: 15
Compiling Problem...


When i try and complile random programs, i get this errror. its almost always starting with a A or very close to the start of the alphabet. Any ideas on whats wrong?
Quote:
gcc -DHAVE_CONFIG_H -D_REENTRANT -D_GNU_SOURCE -DONLY_SERVER -I. -I. -I../.. -I. -I../.. -I../common -I../lib -g -O2 -Wall -W -c `test -f acctedit.c || echo './'`acctedit.c
acctedit.c:8:20: curses.h: No such file or directory
acctedit.c: In function `edit_word':
acctedit.c:36: warning: implicit declaration of function `move'
acctedit.c:37: warning: implicit declaration of function `refresh'
acctedit.c:39: warning: implicit declaration of function `getch'
acctedit.c:40: `KEY_BACKSPACE' undeclared (first use in this function)
acctedit.c:40: (Each undeclared identifier is reported only once
acctedit.c:40: for each function it appears in.)
acctedit.c:48: warning: implicit declaration of function `mvdelch'
acctedit.c:58: warning: implicit declaration of function `mvaddch'
acctedit.c: In function `clear_word':
acctedit.c:73: warning: implicit declaration of function `clrtoeol'
acctedit.c:74: warning: implicit declaration of function `snprintf'
acctedit.c:75: warning: implicit declaration of function `addstr'
acctedit.c: In function `hilite_word':
acctedit.c:84: warning: implicit declaration of function `getyx'
acctedit.c:84: `stdscr' undeclared (first use in this function)
acctedit.c:93: warning: implicit declaration of function `standout'
acctedit.c:95: warning: implicit declaration of function `standend'
acctedit.c: In function `draw_dict':
acctedit.c:103: warning: implicit declaration of function `clear'
acctedit.c: In function `clear_acc':
acctedit.c:195: warning: implicit declaration of function `addch'
acctedit.c: In function `draw_access':
acctedit.c:213: `stdscr' undeclared (first use in this function)
acctedit.c:216: warning: implicit declaration of function `sprintf'
acctedit.c: In function `main':
acctedit.c:330: warning: implicit declaration of function `fprintf'
acctedit.c:330: `stderr' undeclared (first use in this function)
acctedit.c:335: warning: implicit declaration of function `perror'
acctedit.c:339: warning: implicit declaration of function `initscr'
acctedit.c:340: warning: implicit declaration of function `cbreak'
acctedit.c:341: warning: implicit declaration of function `noecho'
acctedit.c:342: warning: implicit declaration of function `keypad'
acctedit.c:342: `stdscr' undeclared (first use in this function)
acctedit.c:342: `TRUE' undeclared (first use in this function)
acctedit.c:355: `KEY_DOWN' undeclared (first use in this function)
acctedit.c:374: `KEY_UP' undeclared (first use in this function)
acctedit.c:389: `KEY_LEFT' undeclared (first use in this function)
acctedit.c:396: `KEY_RIGHT' undeclared (first use in this function)
acctedit.c:417: warning: implicit declaration of function `getmaxyx'
acctedit.c:437: warning: implicit declaration of function `reset_shell_mode'
make[3]: *** [acctedit.o] Error 1
make[3]: Leaving directory `/home/hotline/hxd-0.2.17/src/acctedit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hotline/hxd-0.2.17/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hotline/hxd-0.2.17'
make: *** [all] Error 2
 
Old 12-12-2003, 11:13 PM   #2
Hitokiri_X
Member
 
Registered: Mar 2002
Distribution: Slackware Current
Posts: 99

Rep: Reputation: 15
acctedit.c:8:20: curses.h: No such file or directory
maybe your missing libncurses?
 
Old 12-13-2003, 06:54 AM   #3
ThE_DeaD
LQ Newbie
 
Registered: Jul 2003
Posts: 24

Original Poster
Rep: Reputation: 15
where can i get it/ where do i install it
 
Old 12-13-2003, 08:03 AM   #4
Hitokiri_X
Member
 
Registered: Mar 2002
Distribution: Slackware Current
Posts: 99

Rep: Reputation: 15
Try searching for it on google.. what distro are you using?
 
Old 12-13-2003, 05:57 PM   #5
ThE_DeaD
LQ Newbie
 
Registered: Jul 2003
Posts: 24

Original Poster
Rep: Reputation: 15
rh9
 
Old 12-13-2003, 07:41 PM   #6
ThE_DeaD
LQ Newbie
 
Registered: Jul 2003
Posts: 24

Original Poster
Rep: Reputation: 15
i inscalled ncurses and got it down to this
 
Old 12-13-2003, 07:42 PM   #7
ThE_DeaD
LQ Newbie
 
Registered: Jul 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Making all in acctedit
make[3]: Entering directory `/home/hotline/hxd-0.2.17/src/acctedit'
gcc -g -O2 -Wall -W -o acctedit acctedit.o
acctedit.o(.text+0x2e): In function `edit_word':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:36: undefined reference to `stdscr'
acctedit.o(.text+0x36):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:36: undefined reference to `wmove'
acctedit.o(.text+0x3e):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:37: undefined reference to `stdscr'
acctedit.o(.text+0x43):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:37: undefined reference to `wrefresh'
acctedit.o(.text+0x4a):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:39: undefined reference to `stdscr'
acctedit.o(.text+0x4f):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:39: undefined reference to `wgetch'
acctedit.o(.text+0x9b):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:58: undefined reference to `stdscr'
acctedit.o(.text+0xa0):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:58: undefined reference to `wmove'
acctedit.o(.text+0xb2):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:58: undefined reference to `stdscr'
acctedit.o(.text+0xb7):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:58: undefined reference to `waddch'
acctedit.o(.text+0x122):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:48: undefined reference to `stdscr'
acctedit.o(.text+0x127):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:48: undefined reference to `wmove'
acctedit.o(.text+0x13a):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:48: undefined reference to `stdscr'
acctedit.o(.text+0x13f):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:48: undefined reference to `wdelch'
acctedit.o(.text+0x166): In function `clear_word':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:72: undefined reference to `stdscr'
acctedit.o(.text+0x16b):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:72: undefined reference to `wmove'
acctedit.o(.text+0x172):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:73: undefined reference to `stdscr'
acctedit.o(.text+0x177):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:73: undefined reference to `wclrtoeol'
acctedit.o(.text+0x1ad):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:75: undefined reference to `stdscr'
acctedit.o(.text+0x1b2):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:75: undefined reference to `waddnstr'
acctedit.o(.text+0x1c8): In function `hilite_word':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:84: undefined reference to `stdscr'
acctedit.o(.text+0x1e2):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:86: undefined reference to `stdscr'
acctedit.o(.text+0x1e7):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:86: undefined reference to `wmove'
acctedit.o(.text+0x23a):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:93: undefined reference to `stdscr'
acctedit.o(.text+0x24b):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:94: undefined reference to `waddnstr'
acctedit.o(.text+0x250):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:95: undefined reference to `stdscr'
acctedit.o(.text+0x273): In function `draw_dict':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:103: undefined reference to `stdscr'
acctedit.o(.text+0x278):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:103: undefined reference to `wclear'
acctedit.o(.text+0x284):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:106: undefined reference to `stdscr'
acctedit.o(.text+0x36f): In function `clear_acc':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:194: undefined reference to `stdscr'
acctedit.o(.text+0x374):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:194: undefined reference to `wmove'
acctedit.o(.text+0x39d):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:195: undefined reference to `stdscr'
acctedit.o(.text+0x3dd): In function `hilite_acc':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:201: undefined reference to `stdscr'
acctedit.o(.text+0x3e2):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:201: undefined reference to `wmove'
acctedit.o(.text+0x3e7):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:202: undefined reference to `stdscr'
acctedit.o(.text+0x417):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:203: undefined reference to `stdscr'
acctedit.o(.text+0x41c):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:203: undefined reference to `waddch'
acctedit.o(.text+0x421):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:204: undefined reference to `stdscr'
acctedit.o(.text+0x441): In function `draw_access':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:213: undefined reference to `stdscr'
acctedit.o(.text+0x458):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:214: undefined reference to `stdscr'
acctedit.o(.text+0x45d):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:214: undefined reference to `wmove'
acctedit.o(.text+0x50c):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:222: undefined reference to `stdscr'
acctedit.o(.text+0x511):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:222: undefined reference to `waddnstr'
acctedit.o(.text+0x51e):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:223: undefined reference to `stdscr'
acctedit.o(.text+0x526):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:223: undefined reference to `wmove'
acctedit.o(.text+0x834): In function `main':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:339: undefined reference to `initscr'
acctedit.o(.text+0x839):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:340: undefined reference to `cbreak'
acctedit.o(.text+0x83e):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:341: undefined reference to `noecho'
acctedit.o(.text+0x849):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:342: undefined reference to `stdscr'
acctedit.o(.text+0x84e):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:342: undefined reference to `keypad'
acctedit.o(.text+0x8ab):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:354: undefined reference to `stdscr'
acctedit.o(.text+0x8b0):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:354: undefined reference to `wgetch'
acctedit.o(.text+0x8e1):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:433: undefined reference to `stdscr'
acctedit.o(.text+0x8e6):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:433: undefined reference to `wrefresh'
acctedit.o(.text+0x96a):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:437: undefined reference to `reset_shell_mode'
acctedit.o(.text+0xb21):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:417: undefined reference to `stdscr'
acctedit.o(.text+0xb39):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:418: undefined reference to `stdscr'
acctedit.o(.text+0xb3e):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:418: undefined reference to `wmove'
acctedit.o(.text+0xb4e):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:419: undefined reference to `stdscr'
acctedit.o(.text+0xb53):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:419: undefined reference to `waddnstr'
acctedit.o(.text+0xb61):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:420: undefined reference to `stdscr'
acctedit.o(.text+0xb66):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:420: undefined reference to `waddnstr'
acctedit.o(.text+0xb76):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:421: undefined reference to `stdscr'
acctedit.o(.text+0xb7b):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:421: undefined reference to `waddnstr'
acctedit.o(.text+0xbae):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:423: undefined reference to `stdscr'
acctedit.o(.text+0xbb3):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:423: undefined reference to `waddnstr'
acctedit.o(.text+0xbd1):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:424: undefined reference to `stdscr'
acctedit.o(.text+0xbd6):/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:424: undefined reference to `waddnstr'
acctedit.o(.text+0x292): In function `draw_dict':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:106: undefined reference to `wrefresh'
acctedit.o(.text+0x3ab): In function `clear_acc':
/home/hotline/hxd-0.2.17/src/acctedit/acctedit.c:195: undefined reference to `waddch'
collect2: ld returned 1 exit status
make[3]: *** [acctedit] Error 1
make[3]: Leaving directory `/home/hotline/hxd-0.2.17/src/acctedit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hotline/hxd-0.2.17/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hotline/hxd-0.2.17'
make: *** [all] Error 2
 
Old 12-13-2003, 08:33 PM   #8
Hitokiri_X
Member
 
Registered: Mar 2002
Distribution: Slackware Current
Posts: 99

Rep: Reputation: 15
Hrm,what program is this? It might be easier installing an rpm,try searching for one in rpmfind .
 
Old 12-13-2003, 09:28 PM   #9
ThE_DeaD
LQ Newbie
 
Registered: Jul 2003
Posts: 24

Original Poster
Rep: Reputation: 15
its not there
 
Old 12-14-2003, 10:08 AM   #10
ThE_DeaD
LQ Newbie
 
Registered: Jul 2003
Posts: 24

Original Poster
Rep: Reputation: 15
anyone?
 
Old 12-14-2003, 03:14 PM   #11
Hitokiri_X
Member
 
Registered: Mar 2002
Distribution: Slackware Current
Posts: 99

Rep: Reputation: 15
What program is this you're trying to compile?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem compiling javakid Programming 8 12-16-2004 12:03 AM
Problem compiling Kami.JZ Linux - Newbie 6 10-26-2004 06:28 AM
compiling problem ... chaks Programming 2 03-29-2004 09:14 AM
problem compiling :( celeron2002 Linux - Software 1 02-22-2004 07:19 PM
Compiling 2.4.20 problem frankietomatoes Linux - General 1 01-09-2003 05:43 PM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration