[Boost-bugs] [Boost C++ Libraries] #11921: Bootstrap fails to run on windows 8.1 vc12 due to environment variable

Subject: [Boost-bugs] [Boost C++ Libraries] #11921: Bootstrap fails to run on windows 8.1 vc12 due to environment variable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-18 15:39:00


#11921: Bootstrap fails to run on windows 8.1 vc12 due to environment variable
-----------------------+------------------------------
 Reporter: junaid1@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.60.0
 Severity: Problem | Keywords:
-----------------------+------------------------------
 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

 LINK=/SUBSYSTEM:WINDOWS,5.01

 error is

 error LNK2019: unresolved external symbol _WinMain_at_16 referenced in
 function ___tmainCRTStartup

 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

 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11921>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC