bug-ncurses
[Top][All Lists]
Advanced

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

Re: Problem in linking ncurses with gcc on Solaris SPARC


From: Thomas Dickey
Subject: Re: Problem in linking ncurses with gcc on Solaris SPARC
Date: Thu, 11 Mar 2004 21:22:45 -0500 (EST)

On Thu, 11 Mar 2004, Syed Enam-ur-Rehman wrote:

> Hi,
>
> I have been trying to compile a program using ncurses 5.3 with gcc 3.3.2 on  
> a SPARC machine with Solaris 8, but it reports symbol refrencing errors.
>
> I am using :
>
> # g++ -lncurses myProgram.c
>
> and it reports:
>
> Undefined                       first referenced
> Symbol                                in file
> initscr32                         /var/tmp//ccMr7Ns8.o
  ^^^^^^^^^ this is defined in Sun's curses.h, not in ncurses'

This is in my faq:
http://dickey.his.com/ncurses/ncurses.faq.html#compatible_lib

The problem usually is the sunfreeware package, which installs the
headers conflicting.  (They don't respond to email, I don't recommend
using their packages).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]