[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HP term.h and ncurses.h don't get along

From: John David Anglin
Subject: Re: HP term.h and ncurses.h don't get along
Date: Sun, 7 Nov 2004 17:30:33 -0500 (EST)

> On Sun, 7 Nov 2004, John David Anglin wrote:
> > In building todays cvs version of gdb, I hit the following error:
> >
> > gcc -c -g -O2  -Dvfork=fork  -I. -I../../src/gdb -I../../src/gdb/config
> -DLOCALEDIR="\"/opt/gnu/share/locale\"" -DHAVE_CONFIG_H
> -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd
> -I../../src/gdb/../bfd -I../../src/gdb/../include -I../intl
> -I../../src/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type
> -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized
> -Wformat-nonliteral -Wunused-label -Wunused-function  ../../src/gdb/tui/
> tui.c
> > In file included from ../../src/gdb/tui/tui.c:48:
> > /usr/include/term.h:49: error: conflicting types for 'chtype'
> > /opt/gnu/include/ncurses/ncurses.h:99: error: previous declaration of
> 'chtype' w
> so far, that's only a bug in gdb.  If you include <ncurses/ncurses.h>,
> you should get term.h from the same path, e.g., <ncurses/term.h>.
> The -I's above don't reference /opt/gnu/include, so either that's
> what gcc assumes on that platform, or it's hardcoded someplace.

Ah, thanks.  I missed the fact that ncurses provides term.h.

> Probably it's from gcc.

Yes, it's the local prefix.

J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]