On Fri, 28 Nov 2014 17:55:21 -0800 Walter Bright via Digitalmars-d <[email protected]> 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? this is the tcap.d issue. first: move `char PC;` and `short ospeed;` out of `extern(C)` (that is what drives ld mad). second: kill that linker command and replace it with: gcc $(LDFLG) -o med $(OBJ) -lncurses -lphobos2 -lpthread -lm -lrt this should be enough.
signature.asc
Description: PGP signature
