且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

克服DLL地狱与code :: Blocks的

更新时间:1970-01-01 07:58:06

您IDE指示编译器针对指定库链接,的而不是他们在运行时的加载。对于发生后一件事,你需要通过另一种选择链接器,即

Your IDE instructs the compiler to link against the specified libraries, but not to load them at run time. For this latter thing to happen, you need to pass another option to the linker, namely

-rpath=/path/to/directory/with/your/libraries

,或者,如果接头是由编译器调用,

or, if the linker is invoked by the compiler,

-Wl,-rpath=/same/thing