Hi guys, I have problem with compiling the files. When Im trying to Build the server file in Visual Studio Im receiving this.
1>------ Build started: Project: theforgottenserver, Configuration: Release x64 ------
1>outputmessage.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\memory(1578,1): error C2664: 'void std::_Normal_allocator_traits<_Alloc>::destroy<_Ty>(_Alloc &,_Ty *)': cannot convert argument 1 from '_Alloc' to '_Alloc &'
1> with
1> [
1> _Alloc=LockfreePoolingAllocator<OutputMessage,2048>,
1> _Ty=OutputMessage
1> ]
1> and
1> [
1> _Alloc=OutputMessageAllocator
1> ]
1> and
1> [
1> _Alloc=LockfreePoolingAllocator<OutputMessage,2048>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\xmemory(559,17): message : see declaration of 'std::_Normal_allocator_traits<_Alloc>::destroy'
1> with
1> [
1> _Alloc=LockfreePoolingAllocator<OutputMessage,2048>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\memory(1576): message : while compiling class template member function 'void std::_Ref_count_obj_alloc2<OutputMessage,_Alloc>::_Destroy(void) noexcept'
1> with
1> [
1> _Alloc=OutputMessageAllocator
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\memory(1607): message : see reference to class template instantiation 'std::_Ref_count_obj_alloc2<OutputMessage,_Alloc>' being compiled
1> with
1> [
1> _Alloc=OutputMessageAllocator
1> ]
1>E:\otservbr-global-develop\src\outputmessage.cpp(84): message : see reference to function template instantiation 'std::shared_ptr<OutputMessage> std::allocate_shared<OutputMessage,OutputMessageAllocator,>(const _Alloc &)' being compiled
1> with
1> [
1> _Alloc=OutputMessageAllocator
1> ]
1>Done building project "theforgottenserver.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can someone explain me what should I do? Im huge noob when it comes to C++