Re: [boost] New getting started guide

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Rene Rivera
Sohail Somani wrote:
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Martin Knoblauch Revuelta
I had a little problem with the libraries: I installed them in /usr/local/lib (deafult location, isn't it?), but the system didn't find them at runtime. I had to append /usr/local/lib to /etc/ld.so.conf, and then run ldconfig. I decided to do so after reading:
http://www.dwheeler.com/program-library/Program-Library-HOWTO/x36.html
Maybe dll-path(?)/rpath should be encouraged?
You'll have to explain what you mean. What use of rpath are you referring to? Encouraged how? Encouraged by whom?
It seems that Martin linked to the boost libraries dynamically. The example program might require the user to set LD_LIBRARY_PATH or something equivalent (ld.so.conf on linux). It is entirely possible that the user doesn't know about it. Either the document should mention that LD_LIBRARY_PATH might need to be set or mention the rpath option of bjam. 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. Sohail

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-lin... 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

-----Original Message----- From: boost-bounces@lists.boost.org on behalf of Martin Knoblauch Revuelta
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 :-) === Which would happen if you built both as gcc prefers shared libraries over static. Do the getting started docs make you build both?

On 11/28/06, Sohail Somani <s.somani@fincad.com> wrote:
[..] Do the getting started docs make you build both?
Of course they don't. I just wanted to try and learn both ways. The second way simply showed that the libraries were not correctly installed in my computer for dynamic link. That's all. Maybe I try vs and mingw too ;)
participants (2)
-
Martin Knoblauch Revuelta
-
Sohail Somani