On Mon, May 23, 2011 at 11:44 AM, eric lin <ericlin@xxxxxxxxxxxxx> wrote: > Dear Jeffrey (and/or gnu/g++ programers): > I follow your hint > -------------------- > root@eric-laptop:/# ldconfig -p | grep -i boost > root@eric-laptop:/# > > ---------- > so it looks my thread lib is not available for the runtime linker > although your first commnad do issue a.out without compile/link error > however, when I run ./a.out > --------- > eric@eric-laptop:~/cppcookbook$ ./a.out > ./a.out: error while loading shared libraries: libboost_thread.so.1.46.1: cannot open shared object file: No such file or directory > -- http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html