Boost C++ Libraries: Ticket #11921: Bootstrap fails to run on windows 8.1 vc12 due to environment variable https://svn.boost.org/trac10/ticket/11921 <p> I have noticed that on my system (win 8.1 vc12) I have an environment variable that causes bootstrap to fail due to the link subsystem set to windows by default, the environment variable is </p> <p> LINK=/SUBSYSTEM:WINDOWS,5.01 </p> <p> error is </p> <p> error LNK2019: unresolved external symbol _WinMain@16 referenced in function <span class="underline">_tmainCRTStartup </span></p> <p> The problem can be resolved by explicitly setting the link subsystem via compiler "link" switch "-link -subsystem:console" , since this is a link switch it can only be added at the end of the compile command i.e cannot add it to compiler flags </p> <p> I had to make this change to the build.bat and build.jam files by searching for the compiler commands and hardcoding this flag at the end of a compiler command. Since I don't know much about how to fix this in a more "non-hardcoded" way I thought I would log it so that the experts can fix it properly. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11921 Trac 1.4.3 viboes Thu, 21 Jan 2016 22:43:46 GMT component changed https://svn.boost.org/trac10/ticket/11921#comment:1 https://svn.boost.org/trac10/ticket/11921#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Building Boost</span> </li> </ul> Ticket