Thread: memoverride.cpp
View Single Post
Author Message
Padishar
Junior Member
Join Date: Dec 2004
Old 12-12-2004 , 14:25   memoverride.cpp
Reply With Quote #1

I tried to compile devicenull's Xaphan plugin with gcc 3.4.3. So i get two different errors:

First one:

Code:
bash-2.05b# make
g++ -I/MyMod/src/public -I/MyMod/src/dlls -I/MyMod/src/game_shared -I/MyMod/src/public/tier1 -Dstrcmpi=strcasecmp -D_alloca=alloca -w -pedantic -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 -march=pentium -mmmx -O3 -DARCH=i486 -o obj/auth.o -c auth.cpp
In file included from auth.h:33,
                 from auth.cpp:22:
/MyMod/src/game_shared/IEffects.h:23: error: use of enum `ShakeCommand_t' without previous declaration
make: *** [obj/auth.o] Error 1
I removed "#include "IEffects.h"", fixed some code and than got this second error:

Code:
bash-2.05b# make
g++ -I/MyMod/src/public -I/MyMod/src/dlls -I/MyMod/src/game_shared -I/MyMod/src/public/tier1 -Dstrcmpi=strcasecmp -D_alloca=alloca -w -pedantic -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 -march=pentium -mmmx -O3 -DARCH=i486 -o obj/auth.o -c auth.cpp
g++ -I/MyMod/src/public -I/MyMod/src/dlls -I/MyMod/src/game_shared -I/MyMod/src/public/tier1 -Dstrcmpi=strcasecmp -D_alloca=alloca -w -pedantic -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 -march=pentium -mmmx -O3 -DARCH=i486 -o obj/helpers.o -c helpers.cpp
g++ -I/MyMod/src/public -I/MyMod/src/dlls -I/MyMod/src/game_shared -I/MyMod/src/public/tier1 -Dstrcmpi=strcasecmp -D_alloca=alloca -w -pedantic -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 -march=pentium -mmmx -O3 -DARCH=i486 -o obj/tier0/memoverride.o -c /MyMod/src/public/tier0/memoverride.cpp
/MyMod/src/public/tier0/memoverride.cpp: In function `void* operator new(unsigned int)':
/MyMod/src/public/tier0/memoverride.cpp:258: error: declaration of `void* operator new(unsigned int)' throws different exceptions
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/new:82: error: than previous declaration `void* operator new(unsigned int) throw (std::bad_alloc)'
/MyMod/src/public/tier0/memoverride.cpp: In function `void* operator new [](unsigned int)':
/MyMod/src/public/tier0/memoverride.cpp:268: error: declaration of `void* operator new [](unsigned int)' throws different exceptions
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/new:83: error: than previous declaration `void* operator new [](unsigned int) throw (std::bad_alloc)'
/MyMod/src/public/tier0/memoverride.cpp: In function `void operator delete(void*)':
/MyMod/src/public/tier0/memoverride.cpp:278: error: declaration of `void operator delete(void*)' throws different exceptions
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/new:84: error: than previous declaration `void operator delete(void*) throw ()'
/MyMod/src/public/tier0/memoverride.cpp: In function `void operator delete [](void*)':
/MyMod/src/public/tier0/memoverride.cpp:283: error: declaration of `void operator delete [](void*)' throws different exceptions
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/new:85: error: than previous declaration `void operator delete [](void*) throw ()'
make: *** [obj/tier0/memoverride.o] Error 1
Any ideas or suggestions?
Padishar is offline
Send a message via ICQ to Padishar