View Single Post
alexinno
Senior Member
Join Date: Mar 2007
Location: C:\
Old 08-16-2010 , 02:46   Re: Module: Admin Free Look
Reply With Quote #21

i tried to compile but it gives me error, it does the same with some other default modules for example geoip compiles without any problem and fun doesn't this is the output for the modules that doesn't compile
Code:
[root@ns1 adminfreelook_amxx]# make
mkdir -p Release
make freelook
make[1]: Entering directory `/root/amxx/adminfreelook_amxx'
gcc -I. -I../hlsdk -I../hlsdk/dlls -I../hlsdk/engine -I../hlsdk/game_shared -I../hlsdk/game_shared -I../metamod/metamod -I../hlsdk/common -O3 -funroll-loops -s -pipe -fno-strict-aliasing -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -march=i586 -DNDEBUG -fPIC -Wall -Werror -fno-exceptions -DHAVE_STDINT_H -static-libgcc -fno-rtti -DPAWN_CELL_SIZE=32 -DJIT -DASM32 -o Release/amxxmodule.o -c amxxmodule.cpp
cc1plus: warnings being treated as errors
In file included from ../metamod/metamod/sdk_util.h:55,
                 from ../metamod/metamod/dllapi.h:40,
                 from ../metamod/metamod/meta_api.h:40,
                 from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
../hlsdk/dlls/util.h:249: error: ‘typedef’ was ignored in this declaration
In file included from ../metamod/metamod/dllapi.h:41,
                 from ../metamod/metamod/meta_api.h:40,
                 from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
../metamod/metamod/osdep.h: In function ‘char* DLERROR()’:
../metamod/metamod/osdep.h:141: error: deprecated conversion from string constant to ‘char*’
In file included from ../metamod/metamod/dllapi.h:41,
                 from ../metamod/metamod/meta_api.h:40,
                 from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
../metamod/metamod/osdep.h: In function ‘int THREAD_CREATE(THREAD_T*, void (*)())’:
../metamod/metamod/osdep.h:297: error: deprecated conversion from string constant to ‘char*’
../metamod/metamod/osdep.h:302: error: deprecated conversion from string constant to ‘char*’
../metamod/metamod/osdep.h: In function ‘int MUTEX_INIT(MUTEX_T*)’:
../metamod/metamod/osdep.h:329: error: deprecated conversion from string constant to ‘char*’
../metamod/metamod/osdep.h: In function ‘int MUTEX_LOCK(MUTEX_T*)’:
../metamod/metamod/osdep.h:336: error: deprecated conversion from string constant to ‘char*’
../metamod/metamod/osdep.h: In function ‘int MUTEX_UNLOCK(MUTEX_T*)’:
../metamod/metamod/osdep.h:343: error: deprecated conversion from string constant to ‘char*’
../metamod/metamod/osdep.h: In function ‘int COND_INIT(COND_T*)’:
../metamod/metamod/osdep.h:374: error: deprecated conversion from string constant to ‘char*’
../metamod/metamod/osdep.h: In function ‘int COND_WAIT(COND_T*, MUTEX_T*)’:
../metamod/metamod/osdep.h:381: error: deprecated conversion from string constant to ‘char*’
../metamod/metamod/osdep.h: In function ‘int COND_SIGNAL(COND_T*)’:
../metamod/metamod/osdep.h:388: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp: At global scope:
amxxmodule.cpp:2071: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp:2071: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp:2071: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp:2071: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp:2071: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp:2071: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp:2071: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp: In function ‘int Meta_Query(char*, plugin_info_t**, mutil_funcs_t*)’:
amxxmodule.cpp:2247: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp:2251: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp: In function ‘void GiveFnptrsToDll(enginefuncs_t*, globalvars_t*)’:
amxxmodule.cpp:2377: error: deprecated conversion from string constant to ‘char*’
amxxmodule.cpp: In function ‘void UTIL_LogPrintf(char*, ...)’:
amxxmodule.cpp:3043: error: deprecated conversion from string constant to ‘char*’
make[1]: *** [Release/amxxmodule.o] Error 1
make[1]: Leaving directory `/root/amxx/adminfreelook_amxx'
make: *** [all] Error 2
the same result on fedora and debian
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
gcc version 4.3.2 (Debian 4.3.2-1.1)
__________________

[IMG]http://img188.**************/img188/5787/banner2rcw.png[/IMG]
alexinno is offline