The libraries are (usually) boost/lib/stage/lib
, not boost/lib
.
Also the dynamic loader does not support ~
expansion. Use the fully qualified path, e.g.
-Wl,-rpath,/home/hededo/boost/stage/lib
Or, indeed, as I showed in my previous answer
-Wl,-rpath,"$HOME/boost/stage/lib"
The quotes are just to make it work if $HOME
contains special characters (like whitespace)
You can also look at
- static linking - so you can use Boost but never rely on any external shared library for it
- the BCP utility is a tool for extracting subsets of Boost (here: bcp)