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

2011-07-18 Thread Thomas Dickey
On Sun, 17 Jul 2011, Ray Dillinger wrote: On 07/17/2011 05:10 PM, Thomas Dickey wrote: fwiw, I routinely build with warnings enabled (and don't have a use for -Werror). For the rest - I'm typically seeing only extra warnings that you wouldn't see with -Wall (such as const mismatches, which

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

2011-07-18 Thread Matthias Klose
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

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

2011-07-18 Thread Thomas Dickey
On Mon, 18 Jul 2011, Matthias Klose wrote: 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

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

2011-07-18 Thread Kalle Olavi Niemitalo
Ray Dillinger b...@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

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

2011-07-18 Thread Ray Dillinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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? Sorry, don't understand your message. The ncursesw header is

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

2011-07-18 Thread Ray Dillinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/18/2011 02:31 AM, Kalle Olavi Niemitalo wrote: Ray Dillinger b...@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

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

2011-07-18 Thread Matthias Klose
On 07/18/2011 04:39 PM, Ray Dillinger wrote: plus, your example will fail when using -Wl,--as-needed. move the library behind the objects. Okay... The synopsis of gcc in the man page says the file to be compiled should come last in the compile line. That's the only thing I can see here

Bug#634200: marked as done (gcc -Wall -Werror -lncurses fails to link wide-character ncursesw functions.)

2011-07-18 Thread Debian Bug Tracking System
Your message dated Mon, 18 Jul 2011 19:14:25 +0200 with message-id 4e2469f1.8020...@debian.org and subject line Re: Bug#634200: #634200 gcc -Wall -Werror -lncurses fails to link wide-character ncursesw functions. has caused the Debian Bug report #634200, regarding gcc -Wall -Werror -lncurses