[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Linking problems



Hi

Exact error messages will help. Anyway try following.

1)rpm -ql `rpm -qa | grep ncurses`|more

Find out libraries i.e. .so file in this listing and try to specify it as -l
option on gcc command line.

Something like this.

$ gcc -o first -lcurses first.c

If you have a shared library as  libname.so.<version number>, then command line
option will be -lname. Remeber that.

 HTH

  Bye
   Shridhar

Anuj Kumar wrote:

> Hi Guys,
>
> Problem -one:--------
>
> I want to use <curses.h> / <ncurses.h> And <unistd.h>..
> I have linking error. Because I don't know linking options.
> I am using gcc complier.
>
> Please, I required your valuable guidance.
> Thanks in Advance.
> Anuj
>
> ---------------------------------------------
> Find out more about this and other Linux India
> mailing lists at http://lists.linux-india.org/