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
#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.