ncurses linking(?) problem on Mac OS X

Joakim via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 3 05:36:46 PDT 2014


Hi,

I am very new to D, I just started with it a week ago or so, and
I haven't really been using compiled languages before (except for
Java), so I'm pretty confused with the whole thing in general. ;)

I try to use the ncurses library in my project using:


"dependencies" : {
      "ncurses" : "~master"
},
"lflags" : ["-v"]


But when I try to compile it, I get the following:


@(#)PROGRAM:ld  PROJECT:ld64-236.4
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64
armv6m armv7m armv7em
Library search paths:
	/usr/share/dmd/lib
	/usr/lib
	/usr/local/lib
Framework search paths:
	/Library/Frameworks/
	/System/Library/Frameworks/
ld: library not found for -lncursesw
clang: error: linker command failed with exit code 1 (use -v to
see invocation)
--- errorlevel 1
FAIL
.dub/build/application-debug-posix.osx-x86_64-dmd-4349FBA7803F9504BC9BF29263B86A68
text edit executable
Error executing command build: Link command failed with exit code
1
--------  Terminated, exit code: 2  --------


I have no idea where to go from here to be honest. It's probably
something easily fixed for someone even a tiny bit more
experienced.

I would love some help if anyone feels up to it.


More information about the Digitalmars-d-learn mailing list