View Single Post
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 01-01-2021 , 15:12   Re: [ANY] SteamWorks
Reply With Quote #812

I'm trying to build this extension and get 3 such errors:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/swgchooks.cpp:28:1errordelete called on non-final '__SourceHook_FHCls_ISteamGameCoordinatorSendMessage0::CMyDelegateImpl' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
SH_DECL_HOOK3(ISteamGameCoordinatorSendMessageSH_NOATTRIB0EGCResultsuint32, const void *, uint32);
^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1696:3noteexpanded from macro 'SH_DECL_HOOK3'
                
MAKE_DELEG(rettype, (param1 p1param2 p2param3 p3), (p1p2p3)); \
                ^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1047:23noteexpanded from macro 'MAKE_DELEG'
                
void DeleteThis() { delete this; } \ 
PHP Code:
/home/d/alliedmodders/sourcemod/public/amtl/amtl/am-string.h:110:28errorno member named 'make_unique' in namespace 'std'
        
auto buffer std::make_unique<char[]>(1); 
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/extension.cpp:74:2errordelete 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):
Quote:
os.path.join(self.sm_root, 'sourcepawn', 'include'),
os.path.join(self.sm_root, 'public', 'amtl'),
os.path.join(self.sm_root, 'public', 'amtl', 'amtl'),
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)
Quote:
cd SteamWorks
mkdir build
cd build
python ../configure.py
ambuild
UPD:
after switching to gcc 5.5 I get this error:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/sdk/smsdk_ext.cpp:475:33errorexpected initializer before '_GLIBCXX_USE_NOEXCEPT'
 
void operator delete(void *ptr_GLIBCXX_USE_NOEXCEPT 

Last edited by kadet.89; 01-01-2021 at 19:36.
kadet.89 is offline
Send a message via Skype™ to kadet.89