hi i'm running on of the getting started tutorial programs
and when have installed boost as instructed and get this information:
laserbeak43@malik-laptop:~/Documents/source/boost_1_34_1$ bjam -sHAVE_ICU=1 --toolset=gcc install
Jamfile.v2:341: in load-aux
rule path.glob-tree unknown in module Jamfile</home/laserbeak43/Documents/source/boost_1_34_1>.
/usr/share/boost-build/build/project.jam:318: in load-jamfile
/usr/share/boost-build/build/project.jam:68: in load
/usr/share/boost-build/build/project.jam:170: in project.find
/usr/share/boost-build/build-system.jam:148: in load
/usr/share/boost-build/kernel/modules.jam:261: in import
/usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build
/home/laserbeak43/Documents/source/boost_1_34_1/boost-build.jam:9: in module scope
but when i run this code, i get an error on line 8 saying "boost has not been declared"
#include <regex.h>
#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;
}
}
the files are in my usr/include directory, and the directory is listen in my code::blocks compiler and debugger search directory.