Opened 7 years ago

Last modified 7 years ago

#11921 new Bugs

Bootstrap fails to run on windows 8.1 vc12 due to environment variable

Reported by: junaid1@… Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

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@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.

Change History (1)

comment:1 by viboes, 7 years ago

Component: NoneBuilding Boost
Note: See TracTickets for help on using tickets.