digitalmars.D.learn - linker _
- Ellery Newcomer <ellery-newcomer utulsa.edu> Sep 07 2012
- Johannes Pfau <nospam example.com> Sep 08 2012
- Ellery Newcomer <ellery-newcomer utulsa.edu> Sep 08 2012
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?
Sep 07 2012
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
Sep 08 2012
On 09/08/2012 03:39 AM, Johannes Pfau wrote:-L-llzmadec
Woot! it worked!
Sep 08 2012








Ellery Newcomer <ellery-newcomer utulsa.edu>