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

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



On 07/18/2011 07:35 AM, Ray Dillinger wrote:
> On 07/17/2011 05:10 PM, Thomas Dickey wrote:
> 
>> You're seeing implicit for get_wch, since there's no _XOPEN_SOURCE_EXTENDED
>> in the compile line.  
> 
> Okay, after checking:
> 
> bear@janus:~/src/xxh$ make display.o
> gcc -D_XOPEN_SOURCE_EXTENDED -Wall -Werror -lncursesw -c -o display.o \
> display.c
> bear@janus:~/src/xxh$

should't the ncursesw headers be used? pkg-config --cflags ncursesw

plus, your example will fail when using -Wl,--as-needed. move the library behind
the objects.



Reply to: