[Interest] CONFIGURING Qt5.11.1 in Visual Studio 2017

Timothy W. Grove tim_grove at sil.org
Tue Sep 11 17:32:35 CEST 2018


I haven't often attempted to build Qt myself, so I'm not 100% sure of 
the process, but trying to run 'configure' in Windows 10 I get the 
following error:

C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\type_traits(1271): 
error C2338: You've instantiated std::aligned_storage<Len, Align> with 
an extended alignment (in other words, Align > alignof(max_align_t)). 
Before VS 2017 15.8, the member type would non-conformingly have an 
alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle 
this correctly, but the fix inherently changes layout and breaks binary 
compatibility (*only* for uses of aligned_storage with extended 
alignments). Please define either (1) _ENABLE_EXTENDED_ALIGNED_STORAGE 
to acknowledge that you understand this message and that you actually 
want a type with an extended alignment, or (2) 
_DISABLE_EXTENDED_ALIGNED_STORAGE to silence this message and get the 
old non-conformant behavior.

Where do I need to define either _ENABLE_EXTENDED_ALIGNED_STORAGE or 
_DISABLE_EXTENDED_ALIGNED_STORAGE? Is this something I can do on the 
command line? Thanks for any suggestions.

Best regards,
Tim Grove





More information about the Interest mailing list