Phobos - breaking existing code

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 28 18:08:27 PST 2014


On Fri, Nov 28, 2014 at 05:55:21PM -0800, Walter Bright via Digitalmars-d wrote:
> This is more of an Ubuntu-y issue, but I'm having trouble getting it
> to link with ncurses. This used to work:
> 
> cc $(LDFLG)  -o med $(OBJ) -l :libncurses.so.5 -l phobos2 -l pthread -l m
> 
> but alas, no longer with the latest Ubuntu. (Linux people keep trying
> to get rid of termcap, it's a constant issue.) -lncurses fails,
> everything I try fails.
> 
> Any ideas?

Hmm. Did you install libncurses5-dev (or libncursesw5-dev)? If not, try
`apt-get install libncurses5-dev` (or libncursesw5-dev as appropriate).
Otherwise, try -lncurses5 or -lncursesw5, perhaps?


T

-- 
Don't modify spaghetti code unless you can eat the consequences.


More information about the Digitalmars-d mailing list