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

Bug#634200: gcc -Wall -Werror -lncurses fails to link wide-character ncursesw functions.



Ray Dillinger <bear@sonic.net> writes:

> display.c starts with the lines:
>
>
> #define _X_OPEN_SOURCE_EXTENDED

There is an extra underscore after the X.
Correcting that fixes the implicit-declaration error for me.

Also, for consistency with other uses of this macro, it would be
best to define it with the value 1, like -D_XOPEN_SOURCE_EXTENDED
does if the value is not specified:

#define _XOPEN_SOURCE_EXTENDED 1

The value does not seem to matter for ncursesw, though.



Reply to: