You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
First of all, I would like to thank you for your work - your server turned out to be very convenient to use and multifunctional.
As for my problem - some time ago I successfully built server with VisualStudio 2022 and Windows SDK 10.0.22000.0.
A couple of days ago I decided to update the repository and try to build the server with VisualStudio 2022 and the new SDK 10.0.26100.0.
The build crashes with a bunch of errors. I was able to fix some of them, but I got stuck on building the Asio module. The first two errors look like this:
CppServer\modules\asio\asio\include\asio/co_composed.hpp(161,33): error C3546: "...": no parameters available for package expansion
and the second one is
CppServer\include\server/asio/service.h(67,50): error C2039: "io_service": is not a member of "asio".
and then everything else falls apart.
As far as I understand, io_service was excluded from Asio and renamed to io_context.
Or am I doing something wrong?
Is it possible to build CppServer with the new SDK 10.0.26100.0 for VisualStudio 2022, or will I have to downgrade to an earlier SDK and VisualStudio 2019?
Here is the generation results:
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.36.32546.0
-- The CXX compiler identification is MSVC 19.36.32546.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found version "1.12.0") found components: doxygen missing components: dot
-- The System identification is Windows 10.0.19045 Platform/Windows
-- Found OpenSSL: D:/BLOCKADE/NETWORK/CppServer/modules/OpenSSL/VS/lib/libcrypto.lib (found version "3.2.1")
-- Found Crypt: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64/Crypt32.Lib
-- Found WinSock: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64/MsWSock.Lib
-- The System identification is Windows 10.0.19045 Platform/Windows
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- The System identification is Windows 10.0.19045 Platform/Windows
-- Found DbgHelp: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64/DbgHelp.Lib
-- Found RPC: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64/RpcRT4.Lib
-- Found Userenv: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64/UserEnv.Lib
-- Found VLD: D:/BLOCKADE/NETWORK/CppServer/modules/CppCommon/modules/vld/bin/vld.lib
-- OpenSSL version: 3.2.1 D:/BLOCKADE/NETWORK/CppServer/modules/OpenSSL/VS/include D:/BLOCKADE/NETWORK/CppServer/modules/OpenSSL/VS/lib/libssl.lib;D:/BLOCKADE/NETWORK/CppServer/modules/OpenSSL/VS/lib/libcrypto.lib
-- Configuring done (5.4s)
-- Generating done (0.4s)
-- Build files have been written to: D:/BLOCKADE/NETWORK/CppServer/temp
MSBuild version 17.11.9+a69bbaaf5 for .NET Framework
and the couple of errors:
"D:\BLOCKADE\NETWORK\CppServer\temp\ALL_BUILD.vcxproj" (Default Target) (1) ->
"D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj" (Default Target) (10) ->
(ClCompile Target) ->
D:\BLOCKADE\NETWORK\CppServer\modules\asio\asio\include\asio/co_composed.hpp(161,33): error C3546: "...": no parameters available for package expansion [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(67,50): error C2039: "io_service": not a member of "asio". [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(67): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(67,33): error C2923: std::shared_ptr: "io_service" is not a valid template argument for parameter "_Ty" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(67,21): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(67,21): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(67,63): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(110,35): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(110,45): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(110,18): error C2923: std::shared_ptr: "io_service" is not a valid template argument for parameter "_Ty" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(111,5): error C2955: 'std::shared_ptr': template class requires template argument list [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(164,39): error C2039: 'io_service': is not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(164,49): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(164,22): error C2923: std::shared_ptr: 'io_service' is not a valid template argument for parameter '_Ty' [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(164,22): error C3203: "shared_ptr": unspecialized class template cannot be used as template argument for template parameter "_Ty", valid type required [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(168,27): error C3083: io_service: character to the left of "::" must be a type [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(168,39): error C3203: "strand": unspecialized class template cannot be use template as argument for template parameter "_Ty", valid type required [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(178,100): error C2039: 'io_service': is not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(178,110): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(178,83): error C2923: std::shared_ptr: 'io_service' is not a valid template argument for parameter '_Ty' [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(178,123): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(178,113): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/service.h(111,63): error C2440: return: cannot convert "_Ty" to "std::shared_ptr &" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(27,55): error C2039: "io_service": is not a member of "asio". [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(27,65): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(27,37): error C2672: "std::make_shared": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(27,18): error C2672: 'std::vector<int,std::allocator>::emplace_back': no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(34,59): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(34,69): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(34,41): error C2672: "std::make_shared": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(34,22): error C2672: "std::vector<int,std::allocator>::emplace_back": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(41,55): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(41,65): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(41,37): error C2672: "std::make_shared": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(41,18): error C2672: "std::vector<int,std::allocator>::emplace_back": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(44,42): error C3083: io_service: character to left of "::" must be of type [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(44,62): error C2100: illegal indirection [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(49,46): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(49,56): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(49,29): error C2923: std::shared_ptr: "io_service" is not a valid template argument for parameter "_Ty" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(49,66): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(49,59): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include\vector(860): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include\vector(862,50): error C2672: "forward": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include\vector(862,24): error C2672: "std::vector<int,std::allocator>::_Emplace_one_at_back": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include\vector(862,22): error C2530: _Result: references must be initialized [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(61,42): error C3083: io_service: character to left of "::" must represent type [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(61,62): error C2100: invalid indirection [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(90,9): error C2839: invalid return type "_Ty2 *" for overloaded "operator ->" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(90,18): error C2039: "post": not is a member of "std::shared_ptr". [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\service.cpp(96,78): error C2664: "void CppServer::Asio::Service::ServiceThread(const std::shared_ptr<_Ty> &,const std::shared_ptr &)": cannot convert argument 2 from "_Ty" to "const std::shared_ptr &" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
and some more:
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(41,27): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(41,37): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(41,10): error C2923: std::shared_ptr: 'io_service' is not a valid template argument for parameter '_Ty' [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(41,62): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(43,11): error C3083: io_service: character to the left of "::" must represent a type [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(43,49): error C2955: "asio::strand": class to use template requires argument list template [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(54,27): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(54,10): error C2923: std::shared_ptr: "CppServer::Asio::TCPResolver::io_service" is not a valid template argument for parameter "_Ty" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(54,39): error C2955: "std::shared_ptr": template class requires template argument list [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(56,11): error C3083: io_service: character to the left of "::" must be a type [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server\asio\tcp_resolver.h(56,30): error C2955: "asio::strand": template class requires argument list template to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(69,27): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(69,37): error C2065: io_service: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(69,10): error C2923: std::shared_ptr: 'io_service' is not a valid template argument for parameter '_Ty' [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(69,62): error C2955: "std::shared_ptr": template class requires template argument list to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(71,11): error C3083: io_service: character to the left of "::" must represent a type [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(71,49): error C2955: "asio::strand": template class requires list to use arguments template [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(340,27): error C2039: 'io_service': not a member of 'asio'. [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(340,10): error C2923: std::shared_ptr: "CppServer::Asio::SSLClient::io_service" is not a valid template argument for parameter "_Ty" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(340,39): error C2955: "std::shared_ptr": template class requires template argument list [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(342,11): error C3083: io_service: character to the left of "::" must be a type [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\include\server/asio/ssl_client.h(342,30): error C2955: "asio::strand": template class requires argument list template to use [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(235,30): error C2039: "query": not a member of "asio::ip::basic_resolverasio::ip::tcp,asio::any_io_executor". [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(235,36): error C2065: query: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(235,36): error C2146: syntax error: missing ";" before identifier "query" [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(235,36): error C3861: query: identifier not found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(236,51): error C2065: query: undeclared identifier [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(250,50): error C3536: endpoints: cannot be used before initialization [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(250,23): error C2672: "asio::connect": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(435,77): error C2672: "bind_executor": no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
D:\BLOCKADE\NETWORK\CppServer\source\server\asio\ssl_client.cpp(452,47): error C2672: 'bind_executor': no matching overloaded function found [D:\BLOCKADE\NETWORK\CppServer\temp\cppserver.vcxproj]
Hope, someone can help me.
The text was updated successfully, but these errors were encountered:
Hello!
First of all, I would like to thank you for your work - your server turned out to be very convenient to use and multifunctional.
As for my problem - some time ago I successfully built server with VisualStudio 2022 and Windows SDK 10.0.22000.0.
A couple of days ago I decided to update the repository and try to build the server with VisualStudio 2022 and the new SDK 10.0.26100.0.
The build crashes with a bunch of errors. I was able to fix some of them, but I got stuck on building the Asio module. The first two errors look like this:
CppServer\modules\asio\asio\include\asio/co_composed.hpp(161,33): error C3546: "...": no parameters available for package expansion
and the second one is
CppServer\include\server/asio/service.h(67,50): error C2039: "io_service": is not a member of "asio".
and then everything else falls apart.
As far as I understand,
io_service
was excluded from Asio and renamed toio_context
.Or am I doing something wrong?
Is it possible to build CppServer with the new SDK 10.0.26100.0 for VisualStudio 2022, or will I have to downgrade to an earlier SDK and VisualStudio 2019?
Here is the generation results:
and the couple of errors:
and some more:
Hope, someone can help me.
The text was updated successfully, but these errors were encountered: