fail to compile my code on 3.2

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

Adding -ldl explicitly might help.

Dmitri

yes, that solves the problem, thanks!

Jun