Boost logo

Boost Users :

Subject: Re: [Boost-users] [Regex] subexpressions
From: Roland Bock (rbock_at_[hidden])
Date: 2008-11-19 15:09:37


Hi,

ok, I'll try to rephrase (and please correct me if I am wrong):

a) You have a third party application which is closed source and you
cannot debug it.
b) This application can be extended by software you create yourself
c) You wrote such an extension and this extension behaves weird when
using boost::regex
d) Your extension is a DLL and not a stand-alone program

Correct?

If yes, my first guess is:

You are using dynamic linking and the 3rd party software has its own
version of boost::regex linked into it. If this version is different to
the one you are using at compile time, weird things are to be expected.

Thus, my first suggestion is to use static linking for your plugin.

Regards,

Roland

Carsten Witzel wrote:
> 2008/11/19 <raindog_at_[hidden] <mailto:raindog_at_[hidden]>>
>
> That's still not nearly enough information. How are you using regex
> and how are you using it to interact with this 3rd party lib?
>
>
> OK. Step by step:
> 1) It's a software application which has a C/C++ API.
> 2) You can write small programs with this API which are then called from
> inside the software application. 3) In the source code, all I've done is
> "#include <boost/regex.hpp>" and insert the code listed in my first posting.
>
> To repeat it again: I am not using another implementation of the Regex
> library. I'm using the Boost.Regex library itself from within the 3rd
> party software application.
>
> My question is: How can it be that this "almost" works? The example with
> the win32 console application works as expected.
>
> Regards,
> Carsten
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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