[Event "Event1"] [Round "1"] |
#include <boost/regex.hpp>
const boost::regex e("[a-z]+");
std::string sRegex("^" +sTag + "[[:space:]]\"(.*)\"$");
build/Debug/GNU-Linux-x86/Analyzer.o: In function `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, char const*, unsigned int)': /usr/include/boost/regex/v4/basic_regex.hpp:273: undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)' collect2: ld returned 1 exit status |
g++ -lboost_regex -o dist/Debug/GNU-Linux-x86/chessparser01 build/Debug/GNU-Linux-x86/Board.o build/Debug/GNU-Linux-x86/Director.o build/Debug/GNU-Linux-x86/Analyzer.o build/Debug/GNU-Linux-x86/main.o -L/usr/include/boost -L/usr/include/boost/regex /usr/bin/ld: cannot find -lboost_regex |
find /usr/lib -name libboost\*.so
/usr/lib/libboost_regex-mt.so |