[Top][All Lists]

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

Re: looking for C++ docs/examples

From: D. Stimits
Subject: Re: looking for C++ docs/examples
Date: Mon, 05 May 2003 14:18:39 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021018

Thomas Dickey wrote:

On Mon, May 05, 2003 at 12:40:01PM -0600, D. Stimits wrote:

>I just joined the ncurses list, this message is in part a test to see if
>it goes through.
>I'm trying to find out more about programming ncurses under C++, within
>Linux (Redhat 7.3 through 9.0), and finding docs on working with C++
>"sparse". I updated to the 5.3-4 rpm, so the version should be fairly
>recent. I notice mention of a C++ interface, but no docs are available.
>There is mention of a sample from libg++ (but libg++ appears to be
>antique, I have only a compat version from the 2.7.2 days), but the
>source code is missing from the 5.3-4 rpm distribution.

the original sample from libg++ has long ago been rewritten - what's
left of that is mostly in cursesw.h

Is the libncurses dynamic library useful for the cursesw.h declaration? I'm curious because the only libncures++ file is a static libncurses++.a, and I'd like to avoid static linking. Perhaps there is a reason for it not being made available as a .so file, e.g., name mangling issues. In one C++ program, linked to libncurses.so, I find it seg faults merely by calling initscr(), so I'm betting the dynamic libncurses.so (5.2 or 5.3) is completely incompatible with C++.

Is there a sample program available, or tutorial, on using cursesw.h? The class declaration is somewhat obvious, but I have a feeling I'd be missing a lot of details trying to learn from just this header file.

>One technical question I have, aside from just looking for C++ docs,
>info, and samples, is whether ncurses it thread-safe or reentrant?

no - there's no thread-code in ncurses (not from lack of interest, but time)

Yes, I understand...it can be rather daunting, time-wise, for such a conversion.

D. Stimits, stimits AT attbi DOT com

reply via email to

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