Boost logo

Boost :

Subject: Re: [boost] boost::regex Library crashes in MSVC8.0
From: Naren Ramakrishnan (naren.r_at_[hidden])
Date: 2009-09-02 02:01:23


Hi John,

Thanks a lot for the help. I did not build the library with the
BOOST_REGEX_MATCH_EXTRA flag and that was causing the error.
I build boost 1.40 with the above #define and it works fine.

Thanks a lot for the help

Cheers
Naren

On Tue, Sep 1, 2009 at 9:43 PM, John Maddock <john_at_[hidden]> wrote:

> I am Boost novice and am trying to build a sample application from boost
>> examples. The following is the environment details
>>
>> OS: Winxp sp2.
>> Boost version : 1.40.0
>> Compiler / IDE : MSVC8.0/ Visual Studio 2005
>>
>> I built the boost libraries using the above compiler using the bjam.exe
>> tool
>> and installed boost using the same tool(bjam.exe install). When I run the
>> program(given below) by linking against libboost_regex-vc80-mt-1_39.lib
>> with
>> the following define flags(/D BOOST_REGEX_MATCH_EXTRA /D
>> BOOST_REGEX_NO_LIB), I get a crash with the following message
>>
>
> In order to use BOOST_REGEX_MATCH_EXTRA, then you must compile the regex
> library with that flag set: otherwise the library will *not* be binary
> compatible with your code (see
> http://www.boost.org/doc/libs/1_40_0/libs/regex/doc/html/boost_regex/captures.html#boost_regex.captures.repeated_captures
> )
>
> Also why set BOOST_REGEX_NO_LIB? IMO it's way to easy to select the wrong
> library variant if you do it by hand, the auto-linking feature is there for
> a reason :-)
>
> HTH, John.
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk