[opensuse] Need help with using cruses in c program
In previous versions of OpenSUSE using the following: gcc account.c -lncurses -o acct-test worked without a problem. Now I get: account.c:6:20: fatal error: curses.h: No such file or directory. Line 6 contains: #include <curses.h> I assume I'm missing a library. Can anyone help? Thanks Terry -- openSUSE 11.3 -- Kernel 2.6.34 -- GNU/Linux -- Wed 03/09/11 21:10pm up 4 days 5:18, 4 users, load average: 0.11, 0.04, 0.01 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In previous versions of OpenSUSE using the following: gcc account.c -lncurses -o acct-test worked without a problem.
Now I get: account.c:6:20: fatal error: curses.h: No such file or directory. Line 6 contains: #include <curses.h>
I assume I'm missing a library. Can anyone help?
I'd assume that you don't have ncurses installed. To install the package: zypper in ncurses-devel Hope this helps -Nick -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 09 Mar 2011 21:18:31 -0600 Terry Eck <terry_eck-H+0wwilmMs3R7s880joybQ@public.gmane.org> wrote:
In previous versions of OpenSUSE using the following: gcc account.c -lncurses -o acct-test worked without a problem.
Now I get: account.c:6:20: fatal error: curses.h: No such file or directory. Line 6 contains: #include <curses.h>
I assume I'm missing a library. Can anyone help?
Thanks Terry
Hi Did you install ncurses-devel? -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 11.4 (x86_64) Kernel 2.6.37.1-1.2-desktop up 2:18, 3 users, load average: 0.01, 0.04, 0.06 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 10/03/11 00:18, Terry Eck escribió:
In previous versions of OpenSUSE using the following: gcc account.c -lncurses -o acct-test worked without a problem.
Now I get: account.c:6:20: fatal error: curses.h: No such file or directory. Line 6 contains: #include <curses.h>
I assume I'm missing a library. Can anyone help?
Thanks Terry
You probably want to install ncurses-devel and run gcc `ncursesw6-config --cflags` account.c `ncursesw6-config --libs` ... HTH. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Cristian Rodríguez
-
Malcolm
-
Nick LeRoy
-
Terry Eck