Bug#634200: gcc -Wall -Werror -lncurses fails to link wide-character ncursesw functions.
- To: 634200@bugs.debian.org
- Cc: Ray Dillinger <bear@sonic.net>
- Subject: Bug#634200: gcc -Wall -Werror -lncurses fails to link wide-character ncursesw functions.
- From: Kalle Olavi Niemitalo <kon@iki.fi>
- Date: Mon, 18 Jul 2011 12:31:10 +0300
- Message-id: <[🔎] 87sjq4q6jl.fsf@Pulska.kon.iki.fi>
- Reply-to: Kalle Olavi Niemitalo <kon@iki.fi>, 634200@bugs.debian.org
- In-reply-to: <4E2315F2.8040409__37451.8610806719$1310922382$gmane$org@sonic.net> (Ray Dillinger's message of "Sun, 17 Jul 2011 10:03:46 -0700")
- References: <4E2315F2.8040409__37451.8610806719$1310922382$gmane$org@sonic.net>
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: