www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - linker _

reply Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
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
parent reply Johannes Pfau <nospam example.com> writes:
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
parent Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
On 09/08/2012 03:39 AM, Johannes Pfau wrote:
 -L-llzmadec
Woot! it worked!
Sep 08 2012