How can I use Boost::regex.hpp library in C++?
You need to link to libboost_regex
. Add -lboost_regex
to the compiler switch if you're using gcc.
Those are linker errors. The Boost regex library is not a header-only library like shared_ptr (for example) - you need to link against the .a or .lib or whatever binary library.