Thread overview | |||||
---|---|---|---|---|---|
|
September 07, 2012 linker @_@ | ||||
---|---|---|---|---|
| ||||
playing with some old headers I had lying around, dmd libdw_test.d {{header files}} -L-ldw gives me /usr/bin/ld: /usr/lib64/dmd-2.060/libphobos2.a(memory_4a8_620.o): undefined reference to symbol '_end' /usr/bin/ld: note: '_end' is defined in DSO /lib64/liblzma.so.5 so try adding it to the linker command line /lib64/liblzma.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status any english suggestions? |
September 08, 2012 Re: linker @_@ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | Am Fri, 07 Sep 2012 16:13:28 -0700
schrieb Ellery Newcomer <ellery-newcomer@utulsa.edu>:
>
> playing with some old headers I had lying around,
>
> dmd libdw_test.d {{header files}} -L-ldw
>
> gives me
>
> /usr/bin/ld: /usr/lib64/dmd-2.060/libphobos2.a(memory_4a8_620.o):
> undefined reference to symbol '_end'
> /usr/bin/ld: note: '_end' is defined in DSO /lib64/liblzma.so.5 so
> try adding it to the linker command line
> /lib64/liblzma.so.5: could not read symbols: Invalid operation
> collect2: error: ld returned 1 exit status
>
>
> any english suggestions?
just a wild guess, but I had exactly the same error message when I tried to link against systemd.journal:
make sure you have liblzma installed (/lib64/liblzma.so.5 is not the correct library. It should be in /usr/lib) then link explicitly against liblzmadec:
-L-llzmadec
|
September 08, 2012 Re: linker @_@ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johannes Pfau | On 09/08/2012 03:39 AM, Johannes Pfau wrote:
>
> -L-llzmadec
>
Woot! it worked!
|
Copyright © 1999-2021 by the D Language Foundation