Boost logo

Boost Users :

Subject: Re: [Boost-users] A problem with using boost::regex
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-19 17:01:01


AMDG

On 04/19/2011 01:32 PM, Michael Lindner wrote:
> I have been a boost users for years, but this is the first time I've come
> across a problem with using it. I'm posting this in the hopes that one of
> you will say "oh yeah you did 'X' wrong", because I have been beating my
> head against the wall with this for some time. Thanks for taking a look.
>
> -- Michael Lindner
>
> I have the following program:
>
> #include "boost/regex.hpp"
> #include <string>
>
> int
> main(int argc, char** argv)
> {
> std::string re("[123]abc");
> boost::regex reg(re);
> return 0;
> }
>
> It compiles and runs just fine on my Mac and Linux machines. On Windows,
> however, it compiles fine, and runs fine compiled under the "Debug"
> configuration. When I change that to "Release" however, it crashes with the
> following stack trace:
>

I would guess that there's a mismatch between the
options used to compile the library and the options
used to compile Boost. I assume you compiled Boost
without any special options? Can you provide the
compiler command line?

In Christ,
Steven Watanabe




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