maybe i am facing simple problems since i did it for the first time, i am looking for help from experienced friends
my problem : I installed the sro_devkit project but I can't compile <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to suppress this error, <hash_map> is deprecated and will be REMOVED. Please use <unordered_map> tells me the debugger, I'm doing <unordered_map> and I'm getting an error again, I'll underline the parts of the hash_map file that give errors in the compiler with red
// hash_map extension header
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#pragma once
#ifndef _HASH_MAP_
#define _HASH_MAP_
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#include <xhash>
#pragma pack(push, _CRT_PACKING)
#pragma warning(push, _STL_WARNING_LEVEL)
#pragma warning(disable : _STL_DISABLED_WARNINGS)
_STL_DISABLE_CLANG_WARNINGS
#pragma push_macro("new")
#undef new
#ifndef _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
#error <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define \
_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to suppress this error.
#endif // _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
There are duplicates of this error in their code below
template <class _Kty, class _Ty, class _Tr = hash_compare<_Kty, less<_Kty>>,
class _Alloc = allocator<pair<const _Kty, _Ty>>>
class hash_multimap : public _Hash<_Hmap_traits<_Kty, _Ty, _Tr, _Alloc, true>> {
// hash table of {key, mapped} values, non-unique keys
public:
using _Mybase = _Hash<_Hmap_traits<_Kty, _Ty, _Tr, _Alloc, true>>;
Informative error given below
FAILED: source/libs/BSLib/CMakeFiles/BSLib.dir/src/BSLib/StringCheck.cpp.obj
C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1 434~1.319\bin\Hostx86\x86\cl.exe /nologo /TP -DCONFIG_CHATVIEWER_BADWORDFILTER -DCONFIG_DEBUG_CONSOLE -DCONFIG_DEBUG_REDIRECT_PUTDUMP -DCONFIG_IMGUI -DWINVER=0x0500 -D_CRT_NON_CONFORMING_SWPRINTFS -D_CRT_SECURE_NO_DEPRECATE -D_WIN32_WINNT=0x0500 -I"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\in clude" -I"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\AT LMFC\include" -I"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -IC:\Users\kadir\SRO_DevKit\source\libs\BSLib\src -IC:\Users\kadir\SRO_DevKit\source\libs\ClientNet\s rc -IC:\Users\kadir\SRO_DevKit\source\third-party\remodel\include -IC:\Users\kadir\SRO_DevKit\source\third-party\abi-testing\include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /X /MTd /Zi /Ob0 /Od /RTC1 /showIncludes /Fosource\libs\BSLib\CMakeFiles\BSLib.dir\src\BSLib \StringCheck.cpp.obj /Fdsource\libs\BSLib\CMakeFiles\BSLib.dir\BSLib.pdb /FS -c C:\Users\kadir\SRO_DevKit\source\libs\BSLib\src\BS Lib\StringCheck.cpp
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\in clude\hash_map(22): fatal error C1189: #error: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to suppress this error.
[2/150] Building CXX object source\libs\ClientNet\CMakeFiles\ClientNet.dir\src \ClientNet\MsgStreamBuffer.cpp.obj
And there are errors similar to this, I think they all originate from the hash_map code.






