Hi ,
i want to use boost regex++ for my project but dont want to compile all boost libraries for now,
so i compiled using option:
--with-regex
got no errors, and result library:
boost_regex-gcc-1_33_1.a
copied all boost_<version>/boost headers to $HOME/include
directory is like this:
$HOME/include/boost/regex.hpp
have a simple test.cpp file that uses:
boost::regex_search(...)
i compiled like this:
g++ -o trun test.cpp -I/home/ig3/include -L/home/ig3/lib -lboost_regex-gcc-1_33_1
got following error:
test.cpp: In function `int main(int, char**)':
test.cpp:26: no matching function for call to `regex_search(
__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >&,
__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >, boost::cmatch&,
boost::regex&)'
i wonder why is that. Thought iterator is a template that shouldnt be compiled. Headers should be enough.
I dont have problems compiling all boost libraries.
I do understand c++ but libraries make my head heart yet.
please, anyone, explain me
~igrek