|
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
/usr/local/lib/libboost_regex-gcc-d-1_33_1.a
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:
libboost_regex-gcc-d-1_33_1.so.1.33.1: 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 (ld.so.conf on linux).
I would suggest covering this in
http://boost-consulting.com/boost/more/getting_started.html#nix-e-g-unix-linux-macos-cygwin-binaries
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
> http://boost-consulting.com/boost/more/getting_started.html#id13 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 :-)
Regards,
Martin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk