|
Boost Users : |
From: John Maddock (john_at_[hidden])
Date: 2007-10-03 04:46:35
Mike Marchywka wrote:
> Same problem during link and runtime with only dll. The static choice
> should avoid
> dll problems so maybe I'll give that another look. Thanks again.
Well it works for me with the Boost-1.33.1 install supplied with current
cygwin, the test program is:
#include <boost/regex.hpp>
#include <iostream>
int main()
{
try{
boost::regex
e("(?<=GU.*?TACTAAC.{20,40}AG|^)?(GU.*?TACTAAC.{20,40}AG|$)");
}
catch(boost::regex_error e)
{
std::cout << "Caught a regex_error" << std::endl;
std::cout << e.what() << std::endl;
}
catch(std::exception e)
{
std::cout << "Caught a std::exception" << std::endl;
std::cout << e.what() << std::endl;
}
}
and then:
$ g++ -I /usr/include/boost-1_33_1 t.cpp -lboost_regex-gcc-mt
Info: resolving vtable for boost::regex_errorby linking to
__imp___ZTVN5boost11regex_errorE (auto-import)
$ ./a
Caught a regex_error
Invalid regular expression
Which is what I would expect in that case.
HTH, John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net