Question about installing and using boost library.

Hi all,
I'm a beginner to use boost library for my c++ coding project. After I
include the

On 15 February 2013 16:47, pan yi
I'm a beginner to use boost library for my c++ coding project. After I include the
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

2013/2/15 pan yi
Hi all,
I'm a beginner to use boost library for my c++ coding project. After I include the
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 http://stackoverflow.com/questions/12578499/boost-installation-ubuntu 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
participants (3)
-
Krzysztof Czainski
-
Mateusz Loskot
-
pan yi