Boost logo

Boost Users :

Subject: Re: [Boost-users] [Regex] subexpressions
From: Carsten Witzel (carsten.witzel_at_[hidden])
Date: 2008-11-20 03:09:17


2008/11/19 Roland Bock <rbock_at_[hidden]>

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

Hi,

thanks for the hint!

You've got everything right except d) My extension is a *.exe, but it cannot
be run indepently.

I'll try static linking, but I guess it will not solve the problem: I'm 100%
sure that the main application does not use boost.regex (I've checked with
dependancy walker).

I can debug my plugin (as long as it's not calling functions of the main
application library), but I need some hints where to look at when
boost::regex is involved.

Regards,
Carsten



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