Boost C++ Libraries: Ticket #10757: Building boost with MSVC and SAFESEH https://svn.boost.org/trac10/ticket/10757 <p> Hi, </p> <p> when building boost on MSVC with SAFESEH (which is implicit on x64-builds) I get linking problems, since the MASM-compiler does not have the "safeseh" option on its command line. There is also a thread on boost/dev about this issue </p> <p> <a class="ext-link" href="http://boost.2283326.n4.nabble.com/context-msvc-SAFESEH-td4652245.html"><span class="icon">​</span>http://boost.2283326.n4.nabble.com/context-msvc-SAFESEH-td4652245.html</a> </p> <p> I could solve it by adding safeseh in the two files mentioned here: </p> <p> in boost_1_56_0\libs\context\build\Jamfile.v2: </p> <p> actions masm { </p> <blockquote> <p> ml /safeseh /c /Fo"$(&lt;)" "$(&gt;)" </p> </blockquote> <p> } </p> <p> in boost_1_56_0\tools\build\src\tools\msvc.jam: </p> <blockquote> <p> local default-assembler-i386 = "ml -coff -safeseh" ; </p> </blockquote> <p> Could someone please add a boost-build-option to control the safeseh-setting. </p> <p> Thanks </p> <p> Tobias </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10757 Trac 1.4.3 viboes Fri, 13 Feb 2015 18:41:03 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10757#comment:1 https://svn.boost.org/trac10/ticket/10757#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">olli</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">context</span> </li> </ul> Ticket olli Fri, 13 Feb 2015 20:49:43 GMT <link>https://svn.boost.org/trac10/ticket/10757#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10757#comment:2</guid> <description> <p> SAFESEH is irrelevant on x64 (Windows) systems because exception handlers are table-based (stored in PDATA) -&gt; it is not implicit on x64 systems. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Tobias Loew</dc:creator> <pubDate>Sat, 14 Feb 2015 11:41:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10757#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10757#comment:3</guid> <description> <p> Please forget about the text in the parenthesis. The trouble occurs on MSVC 32-bit compilations when SAFESEH is enabled. I can confirm that linking only succeeds when I add "safeseh" to the ml options. </p> <p> Tobias </p> </description> <category>Ticket</category> </item> <item> <dc:creator>olli</dc:creator> <pubDate>Sat, 14 Feb 2015 19:02:46 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10757#comment:4 https://svn.boost.org/trac10/ticket/10757#comment:4 <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">invalid</span> </li> </ul> <p> You are using MSVC which itself uses MASM to compile assembler files. If you require additional compiler flags than you have to apply those flags at b2/bjam command line (maybe cxxflags). If this does not work because /SAFESEH is not passed to MASM by MSVC than this is an issue of boost.build (and requires an feature request for boost.build). </p> Ticket