bug-ncurses
[Top][All Lists]
Advanced

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

Re: compiling fails - get_user


From: Thomas Dickey
Subject: Re: compiling fails - get_user
Date: Mon, 24 Jul 2017 16:36:24 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Jul 24, 2017 at 02:10:39PM -0400, Rendov Norra wrote:
> On 7/24/17, Thomas Dickey <address@hidden> wrote:
> > On Sun, Jul 23, 2017 at 09:24:45PM -0400, Rendov Norra wrote:
> >> This is with curses 5.9 and gcc 7.1.0. Also, my libc is musl 1.1.16,

5.9 is old - 6.0 is coming up on two years old

6.0+patches is current

http://invisible-island.net/ncurses/ncurses.html#download_ncurses

> >> but that shouldn't make a difference as far as I can tell. Log is
> >
> > It does (musl is "functionally reduced" per whim of its developers:
> > whatever they don't think is important is glossed over).
> What I meant is that the error seems to occur in GCC logic, since it
> complains about a function not existing that's not part of any C
> library afaik.

get_user is declared in the same class, as a protected function.

(the warnings about THROWS should be addressed if you use current code)

> In file included from ../c++/cursesf.h:39:0,
>                  from ../c++/cursesf.cc:35:
> ../c++/cursesp.h: In member function 'T* NCursesUserPanel<T>::UserData() 
> const':
> ../c++/cursesp.h:256:43: error: no matching function for call to 
> 'NCursesUserPanel<T>::get_user() const'
>      return reinterpret_cast<T*>(get_user ());
>                                            ^
> ../c++/cursesp.h:80:9: note: candidate: void* NCursesPanel::get_user() <near 
> match>
>    void *get_user()
>          ^~~~~~~~

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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