Regexp linking problems with VC++6.0 + STLPort

I've read through all the other previous messages dealing with problems with Regexp and VC++, but I wasn't able to find a good answer for my problem. I compiled Regexp++ without any problems. I added the correct directory path for the libraries, so that happens automatically (in my case it links with boost_regex_vc6-stlport_mssd.lib (multithreaded, static run, static link, debug). However, as soon as I try to use any regexp function or class from my code, it comes back with a link error. For example, trying to use the RegExp class, I get: error LNK2001: unresolved external symbol "public: __thiscall boost::RegEx::RegEx(class _STL::basic_string<char,struct std::char_traits <char>,class _STL::allocator<char> > const &,bool)" (?? 0RegEx@boost@@QAE@ABV?$basic_string@DU?$char_trai ts@D@std@@V?$allocator@D@_STL@@@_STL@@_N@Z) bin/XXXXXX.exe : fatal error LNK1120: 1 unresolved externals Can anybody guess as to what might be wrong? I'm using VC++ 6.0 with the latest upgrades and STLPort 4.5.3. Thanks. --Noel llopis@comcast.net

OK, I figured it out. I had been messing with my paths and I was actually using an older version of STLPort, not the newest one as I thought. Recompiling the Regexp library with the newest one works great. One more question though. If I try to use the RegEx class with a large buffer, I get an exception. I use it just like this const std::string & buffer = GetLargeBuffer(); boost::RegEx regEx( buffer ); Is there a limit on how large the buffer can be? I'm passing it the result of loading a web page, so it can be up to 100KB or so. --Noel

One more question though. If I try to use the RegEx class with a large buffer, I get an exception. I use it just like this
const std::string & buffer = GetLargeBuffer(); boost::RegEx regEx( buffer );
Is there a limit on how large the buffer can be? I'm passing it the result of loading a web page, so it can be up to 100KB or so.
A web page isn't a valid regular expression: hence the exception. John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
participants (2)
-
John Maddock
-
Noel Llopis