Color your terminal's output
Axl
axl_dot_mattheus_ at _gmail_dot_com.com
Sat Mar 9 21:55:56 PST 2013
When I run:
$ dmd -unittest -m64 /usr/lib/x86_64-linux-gnu/libncurses.a -run
terminal.d
I get the follwoing output:
terminal.o: In function `_D8terminal12_staticCtor2FZv':
terminal.d:(.text._D8terminal12_staticCtor2FZv+0x27): undefined
reference to `setupterm'
terminal.d:(.text._D8terminal12_staticCtor2FZv+0x81): undefined
reference to `tigetstr'
terminal.d:(.text._D8terminal12_staticCtor2FZv+0x12b): undefined
reference to `tigetstr'
terminal.d:(.text._D8terminal12_staticCtor2FZv+0x1cc): undefined
reference to `tigetstr'
terminal.d:(.text._D8terminal12_staticCtor2FZv+0x26d): undefined
reference to `tigetstr'
terminal.d:(.text._D8terminal12_staticCtor2FZv+0x30e): undefined
reference to `tigetstr'
terminal.o:terminal.d:(.text._D8terminal12_staticCtor2FZv+0x3af):
more undefined references to `tigetstr' follow
terminal.o: In function
`_D8terminal8Terminal36__T13setCapabilityTE8terminal5ColorZ13setCapabilityMFxE8terminal10CapabilityxE8terminal5ColorZv':
terminal.d:(.text._D8terminal8Terminal36__T13setCapabilityTE8terminal5ColorZ13setCapabilityMFxE8terminal10CapabilityxE8terminal5ColorZv+0xb2):
undefined reference to `tparm'
terminal.d:(.text._D8terminal8Terminal36__T13setCapabilityTE8terminal5ColorZ13setCapabilityMFxE8terminal10CapabilityxE8terminal5ColorZv+0xc2):
undefined reference to `tputs'
terminal.d:(.text._D8terminal8Terminal36__T13setCapabilityTE8terminal5ColorZ13setCapabilityMFxE8terminal10CapabilityxE8terminal5ColorZv+0x147):
undefined reference to `tparm'
terminal.d:(.text._D8terminal8Terminal36__T13setCapabilityTE8terminal5ColorZ13setCapabilityMFxE8terminal10CapabilityxE8terminal5ColorZv+0x157):
undefined reference to `tputs'
terminal.o: In function
`_D8terminal8Terminal19__T13setCapabilityZ13setCapabilityMFxE8terminal10CapabilityZv':
terminal.d:(.text._D8terminal8Terminal19__T13setCapabilityZ13setCapabilityMFxE8terminal10CapabilityZv+0xac):
undefined reference to `tparm'
terminal.d:(.text._D8terminal8Terminal19__T13setCapabilityZ13setCapabilityMFxE8terminal10CapabilityZv+0xbc):
undefined reference to `tputs'
terminal.d:(.text._D8terminal8Terminal19__T13setCapabilityZ13setCapabilityMFxE8terminal10CapabilityZv+0x13e):
undefined reference to `tparm'
terminal.d:(.text._D8terminal8Terminal19__T13setCapabilityZ13setCapabilityMFxE8terminal10CapabilityZv+0x14e):
undefined reference to `tputs'
collect2: ld returned 1 exit status
--- errorlevel 1
I know it is a linker error, but I cannot fix it. Any ideas?
dmd version is:
DMD64 D Compiler v2.061
linker version is:
GNU ld (GNU Binutils for Ubuntu) 2.22
Distro is Ubuntu Linux 12.04.
Thanks,
Axl
More information about the Digitalmars-d
mailing list