Boost C++ Libraries: Ticket #6245: Make Boost.RegEx DLL usable from managed C++/CLI and non-managed native C++ modules at the same time https://svn.boost.org/trac10/ticket/6245 <p> Referencing <a class="ext-link" href="http://permalink.gmane.org/gmane.comp.lib.boost.devel/226293"><span class="icon">​</span>http://permalink.gmane.org/gmane.comp.lib.boost.devel/226293</a>: .. _MANAGED is a define set by the VC compiler if the /clr switch is present, therefore it is actually never set when compiling the boost libraries. Of course you can set it via <code>define=_MANAGED</code> and you can then use these generated libraries from a C++/CLI project. (Which I have done: ... <code>define=_MANAGED</code> ... --with-regex ...) </p> <p> BUT: You can now *not* use these libraries from a non-managed ("native") C++ project as that, obviously, doesn't have _MANAGED set, and unlike with the boost build, I don't think it's feasible to define this wholesale for a native project. (And anyways, I'm rather hesitant to define this myself.) ... </p> <p> ... </p> <p> On 02.12.2011 10:29, John Maddock wrote: </p> <blockquote class="citation"> <blockquote class="citation"> <p> (I have attached a patch, hope this works.) </p> <p> Would this make sense? </p> </blockquote> <p> Makes sense to me - I don't have time to test this just now, can you file a new issue on svn.boost.org so I don't forget? </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6245 Trac 1.4.3 John Maddock Sat, 24 Dec 2011 18:04:40 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6245#comment:1 https://svn.boost.org/trac10/ticket/6245#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76140" title="Add BOOST_REGEX_NO_FASTCALL config macro and regenerate docs. Fixes #6245.">[76140]</a>) Add BOOST_REGEX_NO_FASTCALL config macro and regenerate docs. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6245" title="#6245: Patches: Make Boost.RegEx DLL usable from managed C++/CLI and non-managed ... (closed: fixed)">#6245</a>. </p> Ticket