[LLVMdev] fail to compile my code on 3.2

Jun Koi junkoi2004 at gmail.com
Fri Jan 4 23:18:20 PST 2013


hi,

my old code compiles well on 3.1, but fails on 3.2.
the compile error is like below.


...
g++ -o vc main.o `llvm-config --libs all --ldflags`
/usr/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)':
Signals.cpp:(.text+0x6c8): undefined reference to `dladdr'
Signals.cpp:(.text+0x749): undefined reference to `dladdr'
collect2: error: ld returned 1 exit status
make: *** [vc] Error 1


this is on Ubuntu 12.4, 64-bit. any idea on how to fix this?

thanks.
Jun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130105/36fef29c/attachment.html>


More information about the llvm-dev mailing list