[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error to compile and run ncurses program.
From: |
Thomas Dickey |
Subject: |
Re: error to compile and run ncurses program. |
Date: |
Sat, 14 Jul 2007 09:36:06 -0400 (EDT) |
On Fri, 13 Jul 2007, Nimish wrote:
I m new programmer in ncurses. I want to make program for graphics designing
in c++ in linux, someone suggested me for ncurses but i face some problem to
make program on it.
I m using suse 10.1 and install packages => ncurses,
ncurses-devel,yast2-ncurses.
I make a simple program below :-
===============gr1.cc==========================
The ".cc" implies that it is C++ (which may use "g++").
gcc may compile this, but it is nonstandard behavior (you should not rely
on that).
address@hidden:~/cpp_programs> gcc gr1.cc libncurses.a
gcc: libncurses.a: No such file or directory
Try
g++ -o gr1 gr1.cc -lncurses
or (see note)
gcc -o gr1 gr1.cc -lncurses
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net