
27 Mar
2009
27 Mar
'09
8:28 p.m.
On Friday 27 March 2009 09:39:37 Louis Chen wrote:
When i try to run main in B, it fails, of course, with message: "main: error while loading shared library: libboost_thread-mt.so.1.33.1: can not open shared object file: No such file or directory."
How can i force g++ link main to libboost_thread-mt.so in A?
You should not do this. Boost versions are not binary compatible. In particular, boost.thread API has changed quite dramatically in the last few releases. If, at run time, you use a different version compared to build time, the loader will quit stating that symbols are not matched/found. Regards, Ravi