Thanks for the reply.
I'm not so advanced in the all coding thing, but I have some difficulties to set up the library so it work on code:bloks Ide.
What I did is downloaded the library, downloaded the "Bjam" which I understand builds the boost library O.o, when that was done, I had a new folder in my directory "Bin.v2".
If I done right I linked all the available lib packages in the "Setting >> Compiler and debugger" after it a tried a code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <boost/regex.hpp>
#include <iostream>
#include <string>
int main()
{
std::string line;
boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" );
while (std::cin)
{
std::getline(std::cin, line);
boost::smatch matches;
if (boost::regex_match(line, matches, pat))
std::cout << matches[2] << std::endl;
}
}
|
trying to build it, I get error, "boost has not been declared"
I know I made a mistake in the first time trying to setup the lib, because doing like it states in
http://www.boost.org/doc/libs/1_39_0/more/getting_started/unix-variants.html#get-boost was not possible, starting at step 5th I did different.
I got the extracted boost_1_39_0.tar.bz2 in /usr/local/lib
tiped in terminal
$ cd /usr/local/lib
$ sudo bjam
after that it automatically started to build files with a .o extension and a lot else.
Is there any other simple way?