bug-ncurses
[Top][All Lists]
Advanced

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

Re: Error compiling dvtm-0.5.2 application with ncursesw-5.7-18 in cygwi


From: Thomas Dickey
Subject: Re: Error compiling dvtm-0.5.2 application with ncursesw-5.7-18 in cygwin
Date: Tue, 26 Oct 2010 17:09:16 -0400 (EDT)

On Tue, 26 Oct 2010, Justin Charette wrote:

Hi,

I'm hoping you can shed some light on this problem, because google's search
just digs up outdated references.

dvtm is a terminal multiplexing program similar to gnu screen I'm
successfully using in linux, but having trouble compiling in cygwin.

Here's the error:

$ make
cleaning
dvtm build options:
CFLAGS   = -std=c99 -Os -I. -I/usr/include -I/usr/local/include
-I/usr/include/ncursesw -DVERSION="0.5.2" -DNDEBUG
LDFLAGS  = -L/usr/lib -L/usr/local/lib -lc -lutil -lncursesw
CC       = cc
CC dvtm.c
dvtm.c: In function ?parse_args?:
dvtm.c:909: error: lvalue required as left operand of assignment
dvtm.c:935: error: lvalue required as left operand of assignment
dvtm.c:937: error: lvalue required as left operand of assignment
dvtm.c:939: error: lvalue required as left operand of assignment
make: *** [dvtm.o] Error 1

Here's dvtm.c:909

903:  static bool
904:  parse_args(int argc, char *argv[]) {
905:      int arg;
906:      bool init = false;
907:
908:      if (!getenv("ESCDELAY"))
909:          ESCDELAY = 100;

A message <http://www.cygwin.com/ml/cygwin/2010-01/msg00776.html> on cygwin
mentions that ESCDELAY was changed at some point to handle reentrant code,
but I cannot find any documentation regarding this change.

look for set_escdelay().

That's available with/without the reeentrant-code feature.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

reply via email to

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