[Top][All Lists]

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

Re: Shared lib build attempt on HP-UX 11.11

From: Thomas Dickey
Subject: Re: Shared lib build attempt on HP-UX 11.11
Date: Tue, 29 Apr 2008 20:21:00 -0400 (EDT)

On Tue, 29 Apr 2008, Douglas Wilson wrote:

The default build (with non-standard prefix) went fine, but I tried
compiling after "./configure --prefix=/users/test --with-shared"
and got:

      gcc -Ae -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include
            ^^^ (looks like you have $CFLAGS already set in your
                 environment, which is for the HPUX C compiler rather than

-D_HPUX_SOURCE -I/users/test/include/ncurses  +Z -c ../ncurses/li
b_gen.c -o ../obj_s/lib_gen.o
Error 24: "../ncurses/lib_gen.c", line 45 # '<identifier>' expected
instead of 'attr_t'.
           T((T_CALLED("attroff(%s)"), _traceattr2(0,z)));
returnCode(wattr_off(stdscr, static_cast<attr_t>(z), 0L));

I don't see how the "static_cast<attr_t>" would get there, since
there should be "(attr_t)" rather than "static_cast<attr_t>".

The C++ binding could use that, but this is before that point.

returnChar((wmove(a1,a2,z) == (-1) ? static_cast<chtype>((-1)) :

same comment for chtype.  There shouldn't be any static_cast's at
all in lib_gen.c

Perhaps the "-Ae" option is part of the problem (gcc will either
ignore it or do something interesting).

Thomas E. Dickey

reply via email to

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