Phobos - breaking existing code

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 28 18:19:23 PST 2014


On Fri, 28 Nov 2014 17:55:21 -0800
Walter Bright via Digitalmars-d <digitalmars-d at puremagic.com> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141129/70f7aa4d/attachment.sig>


More information about the Digitalmars-d mailing list