Linking to boost_regex library giving unresolved symbols

Hi, I am trying to access the function regex_search() by linking to the boost_regex library. However I am getting the following unresolved symols on GNU/Linux OS 1.undefined symbol: _ZN5boost14reg_expressionIcNS_12regex_traitsIcEEN4_STL9allocatorIcEEE14set_expressionEPKcS8_j(../libAspPatternFindReplace.so) 2. undefined symbol: _ZN5boost9re_detail21raise_regex_exceptionERKN4_STL12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE (../libAspPatternFindReplace.so) 3. undefined symbol: _ZN5boost14c_regex_traitsIcE17transform_primaryERN4_STL12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKS8_ (../libAspPatternFindReplace.so) 4. undefined symbol: _ZN5boost14c_regex_traitsIcE9transformERN4_STL12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKS8_ (../libAspPatternFindReplace.so)The first and third unresolved symbol complain about the functions set_expression() and transform_primary(). However I am not able to get a clue as to the 1st and 4rth link error. How can I resolve the link errors. Thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

shouvik ganguly wrote:
Hi, I am trying to access the function regex_search() by linking to the boost_regex library. However I am getting the following unresolved symols on GNU/Linux OS
You don't give the command line you're using, but the first thing to check is that you have -lboost_regex on the command line, and that it appears *after* all the object/source files that use Boost.Regex. HTH, John.
participants (2)
-
John Maddock
-
shouvik ganguly