Re: [Cppcms-users] static linking error
Brought to you by:
artyom-beilis
|
From: Shiv S. D. <shi...@gm...> - 2013-07-30 06:03:52
|
undefined reference for symbol x clearly means the linker when invoked by compiler is not able to find the library which contains the symbol in this case libdl.so. Normally on Linux systems cppcms goes in /usr/local/lib which is not there in LD_LIBRARY_PATH therefore compilation fails. I have found keeping that in LD_LIBRARY_PATH helpful. Write a simple program which uses libdl.so and try compiling that see if that compiles. Since you said that -ldl flag has been used then it should say libdl.so is not found if it is not in appropriate path. Respect, Shiv On Tuesday 30 July 2013 10:52 AM, Marcel Hellwig wrote: > 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/ > > > > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |