View Single Post
Author Message
More
Member
Join Date: Nov 2004
Location: Internet
Old 08-21-2005 , 14:34   Errors on compiling modules
Reply With Quote #1

I am trying to get a working linux build of a module.
when i use the gcc (version 3.3.5) compiler in my virtual linux box i can compile it without errors but it get a bad load in amxx.

now i am trying to use the windows gcc compiler (version 2.95.2) and i get theses errors:

Code:
make linux

gcc -march=i386 -O2 -ffast-math -funroll-loops -fomit-frame-pointer -fcheck-new
-s -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE=\"optimized\" -Dstrcmpi=strcas
ecmp -fPIC -I../curl/include -I. -I../includes -Iextra/include -I../amxmodx -o o
bj.linux/amxxmodule.o -c amxxmodule.cpp
In file included from ..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i386-mi
ngw32msvc\include\windows.h:82,
                 from ..\includes\extdll.h:42,
                 from amxxmodule.h:15,
                 from amxxmodule.cpp:40:
..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i386-mingw32msvc\include\winb
ase.h:397: warning: `EXCEPTION_CONTINUE_EXECUTION' redefined
..\includes\excpt.h:147: warning: this is the location of the previous definitio
n
cc1plus.exe: warning: -fPIC ignored for target (all code is position independent
)
In file included from amxxmodule.cpp:38:
..\includes\stdlib.h:262: ANSI C++ forbids declaration `__int64' with no type
..\includes\stdlib.h:262: warning: `__cdecl__' attribute directive ignored
..\includes\stdlib.h:262: parse error before `('
..\includes\stdlib.h:271: warning: `__cdecl__' attribute directive ignored
..\includes\stdlib.h:271: conflicting types for `unsigned int __int64'
..\includes\stdlib.h:262: previous declaration as `int __int64'
..\includes\stdlib.h:271: parse error before `('
..\includes\stdlib.h:361: warning: `__cdecl__' attribute directive ignored
..\includes\stdlib.h:361: redefinition of `unsigned int __int64'
..\includes\stdlib.h:271: `unsigned int __int64' previously declared here
..\includes\stdlib.h:361: parse error before `('
..\includes\stdlib.h:363: warning: `__cdecl__' attribute directive ignored
..\includes\stdlib.h:363: redefinition of `unsigned int __int64'
..\includes\stdlib.h:361: `unsigned int __int64' previously declared here
..\includes\stdlib.h:363: parse error before `('
In file included from ..\includes\osdep.h:46,
                 from ..\includes\dllapi.h:41,
                 from ..\includes\meta_api.h:40,
                 from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
..\includes\types_meta.h:75: parse error before `do'
..\includes\types_meta.h:78: ANSI C++ forbids declaration `meta_errno' with no t
ype
..\includes\types_meta.h:78: conflicting types for `int meta_errno'
..\includes\types_meta.h:72: previous declaration as `enum META_ERRNO meta_errno
'
..\includes\types_meta.h:78: `errval' was not declared in this scope
..\includes\types_meta.h:78: parse error before `return'
In file included from ..\includes\osdep.h:47,
                 from ..\includes\dllapi.h:41,
                 from ..\includes\meta_api.h:40,
                 from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
..\includes\mreg.h:63: ANSI C++ forbids declaration `REG_STATUS' with no type
..\includes\mreg.h:79: syntax error before `;'
..\includes\mreg.h:121: syntax error before `;'
In file included from ..\includes\osdep.h:48,
                 from ..\includes\dllapi.h:41,
                 from ..\includes\meta_api.h:40,
                 from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
..\includes\log_meta.h:76: parse error before `do'
In file included from ..\includes\dllapi.h:41,
                 from ..\includes\meta_api.h:40,
                 from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
..\includes\osdep.h: In function `void normalize_pathname(char *)':
..\includes\osdep.h:444: stray '\' in program
..\includes\osdep.h:449: stray '\' in program
In file included from amxxmodule.h:16,
                 from amxxmodule.cpp:40:
..\includes\meta_api.h: At top level:
..\includes\meta_api.h:101: parse error before `do'
..\includes\meta_api.h:119: parse error before `}'
..\includes\meta_api.h:119: ANSI C++ forbids declaration `META_FUNCTIONS' with n
o type
..\includes\meta_api.h:151: type specifier omitted for parameter
..\includes\meta_api.h:151: parse error before `*'
..\includes\meta_api.h:155: type specifier omitted for parameter
..\includes\meta_api.h:155: parse error before `*'
amxxmodule.cpp:2234: syntax error before `='
amxxmodule.cpp:2297: type specifier omitted for parameter
amxxmodule.cpp:2297: parse error before `*'
amxxmodule.cpp: In function `int Meta_Attach(...)':
amxxmodule.cpp:2299: `now' undeclared (first use this function)
amxxmodule.cpp:2299: (Each undeclared identifier is reported only once
amxxmodule.cpp:2299: for each function it appears in.)
amxxmodule.cpp:2303: `pMGlobals' undeclared (first use this function)
amxxmodule.cpp:2308: `pFunctionTable' undeclared (first use this function)
amxxmodule.cpp:2313: `g_MetaFunctions_Table' undeclared (first use this function
)
amxxmodule.cpp:2314: `pGamedllFuncs' undeclared (first use this function)
amxxmodule.cpp: In function `void * operator new(unsigned int)':
amxxmodule.cpp:2842: warning: operator new should throw an exception, not return
 NULL
amxxmodule.cpp: In function `void * operator new [](unsigned int)':
amxxmodule.cpp:2855: warning: operator new should throw an exception, not return
 NULL
amxxmodule.cpp: In function `void * operator new(unsigned int, const char *, int
)':
amxxmodule.cpp:2869: warning: operator new should throw an exception, not return
 NULL
amxxmodule.cpp: In function `void * operator new [](unsigned int, const char *,
int)':
amxxmodule.cpp:2881: warning: operator new should throw an exception, not return
 NULL
make: *** [obj.linux/amxxmodule.o] Error 1
maybe someone can help??
More is offline