From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18220 invoked by alias); 17 Oct 2002 21:02:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18213 invoked from network); 17 Oct 2002 21:02:23 -0000 Received: from unknown (HELO spectra.eng.hawaii.edu) (128.171.61.59) by sources.redhat.com with SMTP; 17 Oct 2002 21:02:23 -0000 Received: from localhost (rsekiya@localhost) by spectra.eng.hawaii.edu (Switch-2.0.1/Switch-2.0.1) with ESMTP id g9HL0os22765; Thu, 17 Oct 2002 11:00:52 -1000 (HST) Date: Thu, 17 Oct 2002 14:02:00 -0000 From: Reed Sekiya To: gcc-help@gcc.gnu.org Subject: compiler problem - curses.h Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-10/txt/msg00212.txt.bz2 I've been having problems compiling a program that includes curses.h to maintain inventory. "gcc inventory.c" results in undefined symbols. I've tried compiling it on several different versions of unix. I've tried everything that I could think of. Can someone please help me get over this problem? The various error reports on the different version of unix are: kaala% gcc inventory.c inventory.c: In function `main': inventory.c:108: warning: return type of `main' is not `int' ld: Undefined symbol _wprintw _touchwin _delwin _COLS _wstandend _box _newwin _printw __tty_ch _wdelch _LINES _wrefresh _wstandout __echoit _stdscr _waddch _waddstr _initscr _endwin _wmove __rawmode _wgetch _wclear __tty collect2: ld returned 2 exit status kaala% exit spectra% gcc inventory.c In file included from /usr/include/curses.h:23, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include/curses.h:5, from inventory.c:12: /usr/include/widec.h:42: warning: `getwc' redefined /usr/include/wchar.h:326: warning: this is the location of the previous definition /usr/include/widec.h:43: warning: `putwc' redefined /usr/include/wchar.h:329: warning: this is the location of the previous definition /usr/include/widec.h:44: warning: `getwchar' redefined /usr/include/wchar.h:327: warning: this is the location of the previous definition /usr/include/widec.h:45: warning: `putwchar' redefined /usr/include/wchar.h:330: warning: this is the location of the previous definition Undefined first referenced symbol in file noecho /var/tmp/ccObh7Pv.o endwin /var/tmp/ccObh7Pv.o initscr32 /var/tmp/ccObh7Pv.o box32 /var/tmp/ccObh7Pv.o wstandout /var/tmp/ccObh7Pv.o COLS /var/tmp/ccObh7Pv.o cbreak /var/tmp/ccObh7Pv.o erasechar /var/tmp/ccObh7Pv.o wclear /var/tmp/ccObh7Pv.o getcurx /var/tmp/ccObh7Pv.o getcury /var/tmp/ccObh7Pv.o wprintw /var/tmp/ccObh7Pv.o printw /var/tmp/ccObh7Pv.o LINES /var/tmp/ccObh7Pv.o wgetch /var/tmp/ccObh7Pv.o newwin /var/tmp/ccObh7Pv.o wrefresh /var/tmp/ccObh7Pv.o wdelch /var/tmp/ccObh7Pv.o delwin /var/tmp/ccObh7Pv.o wstandend /var/tmp/ccObh7Pv.o w32addch /var/tmp/ccObh7Pv.o stdscr /var/tmp/ccObh7Pv.o wmove /var/tmp/ccObh7Pv.o waddstr /var/tmp/ccObh7Pv.o echo /var/tmp/ccObh7Pv.o touchwin /var/tmp/ccObh7Pv.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status spectra% uhunix2:/home/17/rsekiya/public_html% gcc inventory.c In file included from /usr/include/curses.h:23, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include/curses.h:5, from inventory.c:12: /usr/include/widec.h:38: warning: `getwc' redefined /usr/include/iso/wchar_iso.h:337: warning: this is the location of the previous definition /usr/include/widec.h:39: warning: `putwc' redefined /usr/include/iso/wchar_iso.h:340: warning: this is the location of the previous definition /usr/include/widec.h:40: warning: `getwchar' redefined /usr/include/iso/wchar_iso.h:338: warning: this is the location of the previous definition /usr/include/widec.h:41: warning: `putwchar' redefined /usr/include/iso/wchar_iso.h:341: warning: this is the location of the previous definition Undefined first referenced symbol in file noecho /var/tmp/cccdv4Ly.o endwin /var/tmp/cccdv4Ly.o initscr32 /var/tmp/cccdv4Ly.o box32 /var/tmp/cccdv4Ly.o wstandout /var/tmp/cccdv4Ly.o COLS /var/tmp/cccdv4Ly.o cbreak /var/tmp/cccdv4Ly.o erasechar /var/tmp/cccdv4Ly.o wclear /var/tmp/cccdv4Ly.o getcurx /var/tmp/cccdv4Ly.o getcury /var/tmp/cccdv4Ly.o wprintw /var/tmp/cccdv4Ly.o printw /var/tmp/cccdv4Ly.o LINES /var/tmp/cccdv4Ly.o wgetch /var/tmp/cccdv4Ly.o newwin /var/tmp/cccdv4Ly.o wrefresh /var/tmp/cccdv4Ly.o wdelch /var/tmp/cccdv4Ly.o delwin /var/tmp/cccdv4Ly.o wstandend /var/tmp/cccdv4Ly.o w32addch /var/tmp/cccdv4Ly.o stdscr /var/tmp/cccdv4Ly.o wmove /var/tmp/cccdv4Ly.o waddstr /var/tmp/cccdv4Ly.o echo /var/tmp/cccdv4Ly.o touchwin /var/tmp/cccdv4Ly.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status uhunix2:/home/17/rsekiya/public_html% Reed Sekiya