[Boost-users] Question about installing and using boost library.

1,060 views
Skip to first unread message

pan yi

unread,
Feb 15, 2013, 11:47:18 AM2/15/13
to boost...@lists.boost.org
Hi all,

I'm a beginner to use boost library for my c++ coding project. After I
include the <boost/algorithm/string.hpp> in my cpp file and compile the
code, the compiling error indicates that:
fatal error: boost/algorithm/string.hpp: No such file or directory
I search on internet and knows that I need to install some boost
library. But which library should I install? (I tried to install the
whole library with "sudo apt-get install libboost*", but it doesn't work.)

Can any one help me? I'm compiling and executing c++ on ubuntu
Version12.04 environment

Thank you so much.

Best Regards
Pan
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Mateusz Loskot

unread,
Feb 15, 2013, 12:04:51 PM2/15/13
to boost...@lists.boost.org
On 15 February 2013 16:47, pan yi <outlo...@yahoo.com.cn> wrote:
>
> I'm a beginner to use boost library for my c++ coding project. After I
> include the <boost/algorithm/string.hpp> in my cpp file and compile the
> code, the compiling error indicates that:
> fatal error: boost/algorithm/string.hpp: No such file or directory
> I search on internet and knows that I need to install some boost library.
> But which library should I install?

Why don't you ask packages.ubuntu.com search engine to tell you
what package provides boost/algorithm/string.hpp file:

http://packages.ubuntu.com/search?searchon=contents&keywords=boost%2Falgorithm%2Fstring.hpp&mode=exactfilename&suite=precise&arch=any

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net

Krzysztof Czainski

unread,
Feb 15, 2013, 12:06:30 PM2/15/13
to boost...@lists.boost.org
2013/2/15 pan yi <outlo...@yahoo.com.cn>
Hi all,

I'm a beginner to use boost library for my c++ coding project. After I include the <boost/algorithm/string.hpp> in my cpp file and compile the code, the compiling error indicates that:
   fatal error: boost/algorithm/string.hpp: No such file or directory
I search on internet and knows that I need to install some boost library. But which library should I install? (I tried to install the whole library with  "sudo apt-get install libboost*", but it doesn't work.)

Can any one help me? I'm compiling and executing c++ on ubuntu Version12.04 environment

Hi,

Have you tried typing "install boost ubuntu" into google? ;-)

Here's my first result
and voted best answer sais:
sudo apt-get install libboost-all-dev

I don't use ubuntu, so I can't tell you if it works for me ;-)

HTH,
Kris
Reply all
Reply to author
Forward
0 new messages