Boost logo

Boost Users :

Subject: Re: [Boost-users] [program_options] linking error with example
From: Tobias Columbus (t.columbus_at_[hidden])
Date: 2010-01-18 13:38:14


Hi,

You may also add the boost libraries directory to your LD_LIBRARY_PATH
via
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BOOST_LIBS

Regards
Tobias

On Monday 18 January 2010 07:07:25 pm Rangarajan, Kumar wrote:
> > > export BOOST_INC=~/boost_1_41_0
> > > export BOOST_LIBS=~/boost_1_41_0/stage/lib
> > > g++ -I $BOOST_INC first.cpp -o first -L$BOOST_LIBS -
> > lboost_program_options
> >
> > I tried it - seems to compile ok, but when I try to run the
program, I
> > get
> > "error while loading shared libraries:
> > libboost_program_options.so.1.41.0: cannot open shared object file:
No
> > such file or directory"
> > But the library is there...
>
> Try adding -R$BOOST_LIBS to the link line. This should include a
runtime
> path to be looked when loading the library.
>
> :-)
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
__________________________
Tobias Columbus
t.columbus_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net