Raised This Month: $ Target: $400
 0% 

Problem with compiling the stub_mm Sample


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GiZm0r
Junior Member
Join Date: Jun 2005
Old 09-13-2005 , 09:27   Problem with compiling the stub_mm Sample
Reply With Quote #1

I try to compile the sample but i still get the following error. Anyone can tell me what is wrong?

OS: Debian Sarge
GCC: gcc version 3.3.5 (Debian 1.3.5-

I hope anyone can help me


Code:
HL2SDK = /root/sourcemm/hl2sdk
SMM_ROOT = /root/sourcemm/sourcemm/
SRCDS = /root/sourcemm/srcds
Code:
mkdir -p Release
ln -sf /root/sourcemm/srcds/bin/vstdlib_i486.so vstdlib_i486.so
ln -sf /root/sourcemm/srcds/bin/tier0_i486.so tier0_i486.so
make sourcemm
make[1]: Entering directory `/root/sourcemm'
g++ -I. -I/root/sourcemm/hl2sdk/public -I/root/sourcemm/hl2sdk/public/dlls -I/root/sourcemm/hl2sdk/public/engine -I/root/sourcemm/hl2sdk/publictier0 -I/root/sourcemm/hl2sdk/public/tier1 -I/root/sourcemm/hl2sdk/public/vstdlib -I/root/sourcemm/hl2sdk/tier1 -I/root/sourcemm/sourcemm/ -I/root/sourcemm/sourcemm//sourcehook -I/root/sourcemm/sourcemm//sourcemm -O3 -fno-rtti -funroll-loops -s -pipe -fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -fPIC -Wno-deprecated -o Release/stub_mm.o -c stub_mm.cpp
In file included from /root/sourcemm/hl2sdk/public/tier0/platform.h:13,
                 from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/wchartypes.h:24: warning: redeclaration of 
   C++ built-in type `wchar_t'
In file included from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/platform.h:422:1: warning: "LITTLE_ENDIAN" redefined
In file included from /usr/include/sys/types.h:213,
                 from /root/sourcemm/sourcemm/oslink.h:34,
                 from stub_mm.cpp:11:
/usr/include/endian.h:46:1: warning: this is the location of the previous definition
In file included from /root/sourcemm/hl2sdk/public/tier0/platform.h:602,
                 from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/fasttimer.h: In member function `void 
   CCycleCount::Init(float)':
/root/sourcemm/hl2sdk/public/tier0/fasttimer.h:256: warning: converting to `
   long long int' from `double'
In file included from /root/sourcemm/hl2sdk/public/tier0/basetypes.h:11,
                 from /root/sourcemm/hl2sdk/public/tier0/dbg.h:17,
                 from /root/sourcemm/hl2sdk/public/tier1/convar.h:18,
                 from /root/sourcemm/hl2sdk/public/eiface.h:16,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/commonmacros.h:10:9: warning: #pragma once is obsolete
/root/sourcemm/hl2sdk/public/tier0/commonmacros.h:40:34: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/cmodel.h:16,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/trace.h:69:18: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/tier1/utlmemory.h:32,
                 from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/memalloc.h:136:8: warning: extra tokens at end of #endif directive
In file included from /root/sourcemm/hl2sdk/public/tier1/utlmemory.h:33,
                 from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/memdbgon.h:113:40: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/iservernetworkable.h:19,
                 from /root/sourcemm/hl2sdk/public/edict.h:20,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/bspfile.h:10:9: warning: #pragma once is obsolete
In file included from /root/sourcemm/hl2sdk/public/eiface.h:22,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/engine/ivmodelinfo.h:107:24: warning: no newline at end of file
In file included from stub_mm.cpp:19:
/root/sourcemm/sourcemm/sourcehook/sh_list.h: In member function `
   SourceHook::List<T>::iterator SourceHook::List<T>::find(const U&) [with U = 
   void*, T = SourceHook::HookManagerInfo::VfnPtr]':
meta_hooks.h:14:   instantiated from here
/root/sourcemm/sourcemm/sourcehook/sh_list.h:229: error: no match for 'operator
   !=' in 'iter != SourceHook::List<T>::end() const [with T = 
   SourceHook::HookManagerInfo::VfnPtr]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: error: candidates are: bool 
   SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) 
   [with T = SourceHook::HookManagerInfo::VfnPtr]
/root/sourcemm/hl2sdk/public/vector.h:961: error:                 bool 
   operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: error:                 bool 
   operator!=(const Vector&, const float*)
meta_hooks.h: In member function `virtual void 
   __SourceHook_FHCls_IServerGameDLLServerActivate0::Func(edict_t*, int, int)':
meta_hooks.h:14: error: no match for 'operator==' in 'vfptriter == 
   SourceHook::List<T>::end() const [with T = 
   SourceHook::HookManagerInfo::VfnPtr]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:164: error: candidates are: bool 
   SourceHook::List<T>::iterator::operator==(SourceHook::List<T>::iterator&) 
   [with T = SourceHook::HookManagerInfo::VfnPtr]
/root/sourcemm/hl2sdk/public/vector.h:947: error:                 bool 
   operator==(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:954: error:                 bool 
   operator==(const Vector&, const float*)
/root/sourcemm/sourcemm/sourcehook/sh_list.h: In member function `
   SourceHook::List<T>::iterator SourceHook::List<T>::find(const U&) [with U = 
   __SourceHook_FHCls_IServerGameDLLServerActivate0*, T = 
   SourceHook::HookManagerInfo::VfnPtr::Iface]':
meta_hooks.h:14:   instantiated from here
/root/sourcemm/sourcemm/sourcehook/sh_list.h:229: error: no match for 'operator
   !=' in 'iter != SourceHook::List<T>::end() const [with T = 
   SourceHook::HookManagerInfo::VfnPtr::Iface]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: error: candidates are: bool 
   SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) 
   [with T = SourceHook::HookManagerInfo::VfnPtr::Iface]
/root/sourcemm/hl2sdk/public/vector.h:961: error:                 bool 
   operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: error:                 bool 
   operator!=(const Vector&, const float*)
meta_hooks.h: In member function `virtual void 
   __SourceHook_FHCls_IServerGameDLLServerActivate0::Func(edict_t*, int, int)':
meta_hooks.h:14: error: no match for 'operator==' in 'ifiter == 
   SourceHook::List<T>::end() const [with T = 
   SourceHook::HookManagerInfo::VfnPtr::Iface]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:164: error: candidates are: bool 
   SourceHook::List<T>::iterator::operator==(SourceHook::List<T>::iterator&) 
   [with T = SourceHook::HookManagerInfo::VfnPtr::Iface]
/root/sourcemm/hl2sdk/public/vector.h:947: error:                 bool 
   operator==(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:954: error:                 bool 
   operator==(const Vector&, const float*)
meta_hooks.h:14: error: no match for 'operator!=' in 'hiter != 
   SourceHook::List<T>::end() const [with T = 
   SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: error: candidates are: bool 
   SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) 
   [with T = SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]
/root/sourcemm/hl2sdk/public/vector.h:961: error:                 bool 
   operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: error:                 bool 
   operator!=(const Vector&, const float*)
meta_hooks.h:14: error: no match for 'operator!=' in 'hiter != 
   SourceHook::List<T>::end() const [with T = 
   SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: error: candidates are: bool 
   SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) 
   [with T = SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]
/root/sourcemm/hl2sdk/public/vector.h:961: error:                 bool 
   operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: error:                 bool 
   operator!=(const Vector&, const float*)
make[1]: *** [Release/stub_mm.o] Error 1
make[1]: Leaving directory `/root/sourcemm'
make: *** [all] Error 2
GiZm0r is offline
Send a message via ICQ to GiZm0r
BAILOPAN
Join Date: Jan 2004
Old 09-13-2005 , 11:59  
Reply With Quote #2

use GCC-3.4
__________________
egg
BAILOPAN is offline
GiZm0r
Junior Member
Join Date: Jun 2005
Old 09-13-2005 , 14:07  
Reply With Quote #3

ok, I change the makefile to this:
Code:
CPP = g++-3.4
Code:
gcc version 3.4.5 20050706 (prerelease) (Debian 3.4.4-5)
But it still doesn't work


Code:
mkdir -p Release
ln -sf /root/sourcemm/srcds/bin/vstdlib_i486.so vstdlib_i486.so
ln -sf /root/sourcemm/srcds/bin/tier0_i486.so tier0_i486.so
make sourcemm
make[1]: Entering directory `/root/sourcemm'
g++-3.4 -I. -I/root/sourcemm/hl2sdk/public -I/root/sourcemm/hl2sdk/public/dlls -I/root/sourcemm/hl2sdk/public/engine -I/root/sourcemm/hl2sdk/publictier0 -I/root/sourcemm/hl2sdk/public/tier1 -I/root/sourcemm/hl2sdk/public/vstdlib -I/root/sourcemm/hl2sdk/tier1 -I/root/sourcemm/sourcemm/ -I/root/sourcemm/sourcemm//sourcehook -I/root/sourcemm/sourcemm//sourcemm -O3 -fno-rtti -funroll-loops -s -pipe -fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -fPIC -Wno-deprecated -o Release/stub_mm.o -c stub_mm.cpp
In file included from /root/sourcemm/hl2sdk/public/tier0/platform.h:13,
                 from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/wchartypes.h:24: warning: redeclaration of C++ built-in type `short'
In file included from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/platform.h:422:1: warning: "LITTLE_ENDIAN" redefined
In file included from /usr/include/sys/types.h:213,
                 from /root/sourcemm/sourcemm/oslink.h:34,
                 from stub_mm.cpp:11:
/usr/include/endian.h:46:1: warning: this is the location of the previous definition
In file included from /root/sourcemm/hl2sdk/public/tier0/platform.h:602,
                 from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/fasttimer.h: In member function `void CCycleCount::Init(float)':
/root/sourcemm/hl2sdk/public/tier0/fasttimer.h:256: warning: converting to `int64' from `double'
In file included from /root/sourcemm/hl2sdk/public/tier0/basetypes.h:11,
                 from /root/sourcemm/hl2sdk/public/tier0/dbg.h:17,
                 from /root/sourcemm/hl2sdk/public/tier1/convar.h:18,
                 from /root/sourcemm/hl2sdk/public/eiface.h:16,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/commonmacros.h:40:26: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/cmodel.h:16,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/trace.h:69:18: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/tier1/utlmemory.h:32,
                 from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/memalloc.h:136:8: warning: extra tokens at end of #endif directive
In file included from /root/sourcemm/hl2sdk/public/tier1/utlmemory.h:33,
                 from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/memdbgon.h:113:40: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h: In member function `void CUtlMemoryAligned<T, nAlignment>::Grow(int)':
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h:498: warning: there are no arguments to `IsExternallyAllocated' that depend on a template parameter, so a declaration of `IsExternallyAllocated' must be available
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h: In member function `void CUtlMemoryAligned<T, nAlignment>::EnsureCapacity(int)':
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h:554: warning: there are no arguments to `IsExternallyAllocated' that depend on a template parameter, so a declaration of `IsExternallyAllocated' must be available
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h: In member function `void CUtlMemoryAligned<T, nAlignment>::Purge()':
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h:582: warning: there are no arguments to `IsExternallyAllocated' that depend on a template parameter, so a declaration of `IsExternallyAllocated' must be available
In file included from /root/sourcemm/hl2sdk/public/eiface.h:22,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/engine/ivmodelinfo.h:107:24: warning: no newline at end of file
In file included from stub_mm.cpp:19:
meta_hooks.h: In member function `virtual void __SourceHook_FHCls_IServerGameDLLServerActivate0::Func(edict_t*, int, int)':
meta_hooks.h:14: error: no match for 'operator==' in 'vfptriter == SourceHook::List<T>::end() const [with T = SourceHook::HookManagerInfo::VfnPtr]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:164: note: candidates are: bool SourceHook::List<T>::iterator::operator==(SourceHook::List<T>::iterator&) [with T = SourceHook::HookManagerInfo::VfnPtr]
/root/sourcemm/hl2sdk/public/vector.h:947: note:                 bool operator==(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:954: note:                 bool operator==(const Vector&, const float*)
meta_hooks.h:14: error: no match for 'operator==' in 'ifiter == SourceHook::List<T>::end() const [with T = SourceHook::HookManagerInfo::VfnPtr::Iface]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:164: note: candidates are: bool SourceHook::List<T>::iterator::operator==(SourceHook::List<T>::iterator&) [with T = SourceHook::HookManagerInfo::VfnPtr::Iface]
/root/sourcemm/hl2sdk/public/vector.h:947: note:                 bool operator==(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:954: note:                 bool operator==(const Vector&, const float*)
meta_hooks.h:14: error: no match for 'operator!=' in 'hiter != SourceHook::List<T>::end() const [with T = SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: note: candidates are: bool SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) [with T = SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]
/root/sourcemm/hl2sdk/public/vector.h:961: note:                 bool operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: note:                 bool operator!=(const Vector&, const float*)
meta_hooks.h:14: error: no match for 'operator!=' in 'hiter != SourceHook::List<T>::end() const [with T = SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: note: candidates are: bool SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) [with T = SourceHook::HookManagerInfo::VfnPtr::Iface::Hook]
/root/sourcemm/hl2sdk/public/vector.h:961: note:                 bool operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: note:                 bool operator!=(const Vector&, const float*)
/root/sourcemm/sourcemm/sourcehook/sh_list.h: In member function `SourceHook::List<T>::iterator SourceHook::List<T>::find(const U&) [with U = void*, T = SourceHook::HookManagerInfo::VfnPtr]':
meta_hooks.h:14:   instantiated from here
/root/sourcemm/sourcemm/sourcehook/sh_list.h:229: error: no match for 'operator!=' in 'iter != SourceHook::List<T>::end() const [with T = SourceHook::HookManagerInfo::VfnPtr]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: note: candidates are: bool SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) [with T = SourceHook::HookManagerInfo::VfnPtr]
/root/sourcemm/hl2sdk/public/vector.h:961: note:                 bool operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: note:                 bool operator!=(const Vector&, const float*)
/root/sourcemm/sourcemm/sourcehook/sh_list.h: In member function `SourceHook::List<T>::iterator SourceHook::List<T>::find(const U&) [with U = __SourceHook_FHCls_IServerGameDLLServerActivate0*, T = SourceHook::HookManagerInfo::VfnPtr::Iface]':
meta_hooks.h:14:   instantiated from here
/root/sourcemm/sourcemm/sourcehook/sh_list.h:229: error: no match for 'operator!=' in 'iter != SourceHook::List<T>::end() const [with T = SourceHook::HookManagerInfo::VfnPtr::Iface]()'
/root/sourcemm/sourcemm/sourcehook/sh_list.h:160: note: candidates are: bool SourceHook::List<T>::iterator::operator!=(SourceHook::List<T>::iterator&) [with T = SourceHook::HookManagerInfo::VfnPtr::Iface]
/root/sourcemm/hl2sdk/public/vector.h:961: note:                 bool operator!=(const float*, const Vector&)
/root/sourcemm/hl2sdk/public/vector.h:968: note:                 bool operator!=(const Vector&, const float*)
make[1]: *** [Release/stub_mm.o] Error 1
make[1]: Leaving directory `/root/sourcemm'
make: *** [all] Error 2
GiZm0r is offline
Send a message via ICQ to GiZm0r
BAILOPAN
Join Date: Jan 2004
Old 09-14-2005 , 03:46  
Reply With Quote #4

I've fixed this in CVS, thanks for reporting it!

Seems GCC doesn't like tiny template mistakes.
__________________
egg
BAILOPAN is offline
GiZm0r
Junior Member
Join Date: Jun 2005
Old 09-14-2005 , 07:20  
Reply With Quote #5

THX, with the new version it works now

But there are still some warnings. Can I ignor these warnings?

Code:
R211122:~/sourcemm# make
mkdir -p Release
ln -sf /root/sourcemm/srcds/bin/vstdlib_i486.so vstdlib_i486.so
ln -sf /root/sourcemm/srcds/bin/tier0_i486.so tier0_i486.so
make sourcemm
make[1]: Entering directory `/root/sourcemm'
g++-3.4 -I. -I/root/sourcemm/hl2sdk/public -I/root/sourcemm/hl2sdk/public/dlls -I/root/sourcemm/hl2sdk/public/engine -I/root/sourcemm/hl2sdk/publictier0 -I/root/sourcemm/hl2sdk/public/tier1 -I/root/sourcemm/hl2sdk/public/vstdlib -I/root/sourcemm/hl2sdk/tier1 -I/root/sourcemm/sourcemm/ -I/root/sourcemm/sourcemm//sourcehook -I/root/sourcemm/sourcemm//sourcemm -O3 -fno-rtti -funroll-loops -s -pipe -fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -fPIC -Wno-deprecated -o Release/stub_mm.o -c stub_mm.cpp
In file included from /root/sourcemm/hl2sdk/public/tier0/platform.h:13,
                 from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/wchartypes.h:24: warning: redeclaration of C++ built-in type `short'
In file included from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/platform.h:422:1: warning: "LITTLE_ENDIAN" redefined
In file included from /usr/include/sys/types.h:213,
                 from /root/sourcemm/sourcemm/oslink.h:34,
                 from stub_mm.cpp:11:
/usr/include/endian.h:46:1: warning: this is the location of the previous definition
In file included from /root/sourcemm/hl2sdk/public/tier0/platform.h:602,
                 from /root/sourcemm/hl2sdk/public/tier1/interface.h:41,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:19,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/fasttimer.h: In member function `void CCycleCount::Init(float)':
/root/sourcemm/hl2sdk/public/tier0/fasttimer.h:256: warning: converting to `int64' from `double'
In file included from /root/sourcemm/hl2sdk/public/tier0/basetypes.h:11,
                 from /root/sourcemm/hl2sdk/public/tier0/dbg.h:17,
                 from /root/sourcemm/hl2sdk/public/tier1/convar.h:18,
                 from /root/sourcemm/hl2sdk/public/eiface.h:16,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/commonmacros.h:40:26: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/cmodel.h:16,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/trace.h:69:18: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/tier1/utlmemory.h:32,
                 from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/memalloc.h:136:8: warning: extra tokens at end of #endif directive
In file included from /root/sourcemm/hl2sdk/public/tier1/utlmemory.h:33,
                 from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier0/memdbgon.h:113:40: warning: no newline at end of file
In file included from /root/sourcemm/hl2sdk/public/tier1/utlvector.h:20,
                 from /root/sourcemm/hl2sdk/public/gametrace.h:15,
                 from /root/sourcemm/hl2sdk/public/cmodel.h:110,
                 from /root/sourcemm/hl2sdk/public/edict.h:15,
                 from /root/sourcemm/hl2sdk/public/eiface.h:18,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h: In member function `void CUtlMemoryAligned<T, nAlignment>::Grow(int)':
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h:498: warning: there are no arguments to `IsExternallyAllocated' that depend on a template parameter, so a declaration of `IsExternallyAllocated' must be available
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h: In member function `void CUtlMemoryAligned<T, nAlignment>::EnsureCapacity(int)':
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h:554: warning: there are no arguments to `IsExternallyAllocated' that depend on a template parameter, so a declaration of `IsExternallyAllocated' must be available
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h: In member function `void CUtlMemoryAligned<T, nAlignment>::Purge()':
/root/sourcemm/hl2sdk/public/tier1/utlmemory.h:582: warning: there are no arguments to `IsExternallyAllocated' that depend on a template parameter, so a declaration of `IsExternallyAllocated' must be available
In file included from /root/sourcemm/hl2sdk/public/eiface.h:22,
                 from /root/sourcemm/sourcemm/ISmmAPI.h:20,
                 from /root/sourcemm/sourcemm/ISmmPlugin.h:21,
                 from stub_mm.h:14,
                 from stub_mm.cpp:12:
/root/sourcemm/hl2sdk/public/engine/ivmodelinfo.h:107:24: warning: no newline at end of file
g++-3.4 -I. -I/root/sourcemm/hl2sdk/public -I/root/sourcemm/hl2sdk/public/dlls -I/root/sourcemm/hl2sdk/public/engine -I/root/sourcemm/hl2sdk/publictier0 -I/root/sourcemm/hl2sdk/public/tier1 -I/root/sourcemm/hl2sdk/public/vstdlib -I/root/sourcemm/hl2sdk/tier1 -I/root/sourcemm/sourcemm/ -I/root/sourcemm/sourcemm//sourcehook -I/root/sourcemm/sourcemm//sourcemm -O3 -fno-rtti -funroll-loops -s -pipe -fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -fPIC -Wno-deprecated Release/stub_mm.o vstdlib_i486.so tier0_i486.so -shared -ldl -lm -oRelease/stub_mm_i486.so
make[1]: Leaving directory `/root/sourcemm'
GiZm0r is offline
Send a message via ICQ to GiZm0r
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 09-14-2005 , 12:48  
Reply With Quote #6

Most of my stuff gets more warnings than that from the HL2SDK files. So far I've safely ignored them.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
BAILOPAN
Join Date: Jan 2004
Old 09-14-2005 , 14:28  
Reply With Quote #7

I'm working on a "linux patched" version of the HL2SDK like Will Day has... I simply correct warnings as they appear, sigh
__________________
egg
BAILOPAN is offline
GiZm0r
Junior Member
Join Date: Jun 2005
Old 09-15-2005 , 10:33  
Reply With Quote #8

thx, now it works

and with the MM:S 1.10 the plugin will run now



btw: is it normal, that the 1.10 is about 50kbyte smaller than 1.00?
GiZm0r is offline
Send a message via ICQ to GiZm0r
BAILOPAN
Join Date: Jan 2004
Old 09-15-2005 , 10:48  
Reply With Quote #9

Yes, because we removed STL, so it no longer links against libstdc++.so
__________________
egg
BAILOPAN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode