Dear Dr. John Maddock,
 
>You can use Boost.Regex in a dll by defining BOOST_REGEX_DYN_LINK when
>building your dll, but as long as the regex code is isolated to your dll and
>doesn't spill over into it's public interface then this shouldn't be
>necessary. 
 
Like I said in an earlier e-mail, the code is isolated. However, to make things sure I added it as:
#define BOOST_REGEX_DYN_LINK in the source code and there is no change.
Then I defined it in Properties->Preprocessor Definitions. Then it complains as:
"Mixing a Boost dll with a static runtime is a really bad idea ...". I don't know why?
 
>Other than that it's hard to say what the issue might be without
>seeing your code.
 
The surprising thing is that a single line of BOOST code (just an expression) disturbs the program. For example, I  added:

        boost::regex sre("!NULL|sil|SIL");

only and didn't do anything with it. Then when I run the program with the perfectly working code (non-boost), it misbehaves. So I don't think it is a problem with my regex code as all.
 
I don't think this problem is asscociated with the main program using my dll too. Otherwise, I must have missed something essential. I want to use Boost but I really need help at this point.
 
Thank you in advance!
 
mmoges

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users



Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.