Skip to content

fmt project not building on Win64 under Visual Studio 2022 17.10.2 #93

@loosche

Description

@loosche

When I attempt to build all solutions on Windows under Visual Studio 2022 (Version 17.10.2) I end up with the following types of compilation errors when from the fmt project:

1>------ Build started: Project: fmt, Configuration: Debug x64 ------
1>format.cc
1>os.cc
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(490,51): error C2220: the following warning is treated as an error
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(490,51): warning C4996: 'stdext::checked_array_iterator<_Ty*>': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning.
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(490,51): error C2220: the following warning is treated as an error
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(490,51): warning C4996: 'stdext::checked_array_iterator<_Ty*>': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning.
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(493,3): warning C4996: 'stdext::checked_array_iterator<T *>::checked_array_iterator': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning.
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(493,3): warning C4996:         with
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(493,3): warning C4996:         [
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(493,3): warning C4996:             T=fmt::v9::detail::bigint::bigit
1>D:\code\GraphicsExperiments\third_party\KTX-Software\other_projects\fmt\include\fmt\format.h(493,3): warning C4996:         ]
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xutility(1266,31): warning C4996: 'stdext::checked_array_iterator<T *>': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xutility(1266,31): warning C4996:         with
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xutility(1266,31): warning C4996:         [
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xutility(1266,31): warning C4996:             T=fmt::v9::detail::bigint::bigit
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xutility(1266,31): warning C4996:         ]

Doesn't seem to cause any errors to the experiments I'm currently updating, and I only noticed it when I attempted to build all the projects on windows before checking in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions