Boost logo

Boost Users :

Subject: [Boost-users] Boost improperly including NTVERP.H
From: Brian Catlin (BrianC_at_[hidden])
Date: 2018-02-22 03:33:29


Boost 1.66.0 is causing the Windows file NTVERP.H to be included (defining macros such as VER_DEBUG, VER_PRODUCTVERSION_STR, etc), preventing the definition of those macros by the application. This behavior didn't exist in 1.65.1, and breaks a standard Windows paradigm (it is very common for a Windows program to have a Version.h file containing the version resource macros (that are also defined in NTVERP.H), and then include Version.h in the main CPP file and the Resources.RC file). The NTVERP.H file contains the version information for the Windows SDK, and should NOT be included in an application!

NTVERPH.H is included in:
boost.1.66.0.0\lib\native\include\boost\predef\platform\windows_uwp.h
boost.1.66.0.0\lib\native\include\boost\winapi\config.hpp



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net