Boost logo

Boost :

From: Martin Knoblauch Revuelta (mkrevuelta_at_[hidden])
Date: 2006-11-28 06:09:47

> > >> I had a little problem with the libraries: [..]

> It seems that Martin linked to the boost libraries dynamically.

In first place I tried method a:
c++ -I /usr/local/include/boost-1_33_1 example.cpp -o example

It worked perfect.

Then I tried method b (dynamic, I guess):
c++ -I /usr/local/include/boost-1_33_1 example.cpp -o example
-L/usr/local/lib -lboost_regex-gcc-d-1_33_1

At runtime:
./example: error while loading shared libraries: cannot open shared object file:
No such file or directory

> The
> example program might require the user to set LD_LIBRARY_PATH or
> something equivalent ( on linux).

I would suggest covering this in
with a short explanation and/or a link to a linux howto. Maybe a
mention of the problem and some keywords would suffice.

> Although looking at
> it
> seems that the sample specifies linking statically so I'm not sure what
> problems Martin was having.

Method b turned out to be dynamic for me :-)



Boost list run by bdawes at, gregod at, cpdaniel at, john at