Re: [Cppcms-users] static linking error
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2013-07-30 05:22:45
|
On 30.07.2013 02:12, 陈抒 wrote: > find / -name 'libdl.*' > /usr/lib/x86_64-linux-gnu/libdl.a > /usr/lib/x86_64-linux-gnu/libdl.so > /lib/i386-linux-gnu/libdl.so.2 > /lib/x86_64-linux-gnu/libdl.so.2 > > But I need to static link it in my app. Do you mean LIBRARY_PATH > instead of LD_LIBRARY_PATH? > One is for runtime, the other one for compile time ;) http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path you also can check if ldconfig finds your libdl with > ldconfig -p | grep libdl if not, update your ldconf http://linux.101hacks.com/unix/ldconfig/ |