????????: Linux s12084 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
????gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3)
????boost 1.37.0
???????10?·??ù????????ù??????? regex ?????????С????????????ο???
????boost ????????á???windows ???? linux ???±??????????hp aCC ?????? boost 1.35 ?????? ??
???????????????????????????????????????? $(boost_root)/libs/??????????????? build ???У????????????? makefile???????ɡ?
???????磬????????? boost 1.37 ?? regex ????? boost ??????? c:oost_1_37_0??
??????????????
????c:oost_1_37_0libs egexuild
????????????? .mak ?????????????????????????????? .mak ?????????????gcc??????????????? gcc.mak ??
????????????????? makefile ???????????? 8 ??????????????releasedebug ???????????? ????????????? debug ?汾???????汾?????? ”_d“?? ???????????汾??????"_mt"??regex ???? linux ????????????????б????£?
????//???????????汾
????libboost_regex-gcc-1_37.so  libboost_regex-gcc-d-1_37.so
????//???????????汾
????ibboost_regex-gcc-1_37.a   libboost_regex-gcc-d-1_37.a
????// ??????????????汾
????libboost_regex-gcc-mt -1_37.SO   libboost_regex-gcc-mt-d-1_37.so
????//??????????????汾
????libboost_regex-gcc-mt -1_37.a   libboost_regex-gcc-mt-d-1_37.a
?????С????????????????????????????
??????????????? makefile ???? -I ?????? boost ??????·???????????????????????? -L????????? .so ????????á???????????????????????
???????boost::regex??????
?????????http://bbs.chinaunix.net/viewthread.php?tid=987718
??????????????regex????????libboost_regex-gcc-1_34.a??????????regex?????Ч?????????£?
CODE:
#include<boost/regex.hpp>
int main(int argc??char * argv[])
{
boost::regex e("test");
return 0;
}
#g++ regex.cpp -I /path/to/boostroot -L/path/to/libboost_regex-gcc-1_34.a -o regex
?????
/tmp/ccf4WLI8.o(.gnu.linkonce.t._ZN5boost11basic_regexIcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE6assignEPKcS7_j+0x13): In function `boost::basic_regex<char?? boost::regex_traits<char?? boost::cpp_regex_traits<char> > >::assign(char const*?? char const*?? unsigned int)':
: 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