Boost logo

Boost Users :

From: Metasebia Moges (mtsbmoges_at_[hidden])
Date: 2007-04-20 13:34:13


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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



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