I'm trying to build this extension and get 3 such errors:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/swgchooks.cpp:28:1: error: delete called on non-final '__SourceHook_FHCls_ISteamGameCoordinatorSendMessage0::CMyDelegateImpl' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
SH_DECL_HOOK3(ISteamGameCoordinator, SendMessage, SH_NOATTRIB, 0, EGCResults, uint32, const void *, uint32);
^
/home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1696:3: note: expanded from macro 'SH_DECL_HOOK3'
MAKE_DELEG(rettype, (param1 p1, param2 p2, param3 p3), (p1, p2, p3)); \
^
/home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1047:23: note: expanded from macro 'MAKE_DELEG'
void DeleteThis() { delete this; } \
PHP Code:
/home/d/alliedmodders/sourcemod/public/amtl/amtl/am-string.h:110:28: error: no member named 'make_unique' in namespace 'std'
auto buffer = std::make_unique<char[]>(1);
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/extension.cpp:74:2: error: delete called on non-final 'SteamWorksHTTP' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
delete this->pSWHTTP;
I'm using the latest SDK and clang 3.8. What could be the reason?
Also I had to add these pathes (ambuild couldn't find some headers):
It seams to me that I'm building it the wrong way, is there an instruction?
Here are my steps:
1) I downloaded SDK, mm , sm this way
https://wiki.alliedmods.net/Building_sourcemod
2) Placed SteamWorks alongside with sourcemod
3) Downloaded steamworks SDK from this link
https://partner.steamgames.com/downl...mworks_sdk.zip
4) Extracted the arhive and renamed sdk to steamworks_sdk
5)
UPD:
after switching to gcc 5.5 I get this error:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/sdk/smsdk_ext.cpp:475:33: error: expected initializer before '_GLIBCXX_USE_NOEXCEPT'
void operator delete(void *ptr) _GLIBCXX_USE_NOEXCEPT