Plugin Compile Error
#1

Hello Sa-MP Community,

i hope you all can understand my English.

I have downloaded the SprunkBuster Plugin Source Code and try to compile it.

But i get the following Errors:

On Linux:
Код:
g++ -c ./SDK/*.cpp ./*.cpp -O3 -fno-strict-aliasing -fmerge-all-constants -fvisibility=hidden -Wall -I./Libraries/
In file included from ./SDK/amxplugin.cpp:34:
./SDK/plugincommon.h:41:4: error: #error "You must define one of WIN32, LINUX or FREEBSD"
In file included from ./SDK/amxplugin.cpp:33:
./SDK/amx/amx.h:215: warning: вpackedв attribute ignored for field of type вchar [20]в
./SDK/amx/amx.h:265: warning: вpackedв attribute ignored for field of type вcharв
./SDK/amx/amx.h:266: warning: вpackedв attribute ignored for field of type вcharв
./SDK/amx/amx.h:384: error: вsize_tв has not been declared
./SDK/amx/amx.h:404: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:439: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:440: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:579: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:580: error: вsize_tв has not been declared
In file included from ./main.h:46,
                 from ./main.cpp:19:
./SDK/plugincommon.h:41:4: error: #error "You must define one of WIN32, LINUX or FREEBSD"
In file included from ./main.h:45,
                 from ./main.cpp:19:
./SDK/amx/amx.h:60: error: conflicting declaration вtypedef long int int32_tв
/usr/include/stdint.h:39: error: вint32_tв has a previous declaration as вtypedef int int32_tв
./SDK/amx/amx.h:61: error: conflicting declaration вtypedef long unsigned int uint32_tв
/usr/include/stdint.h:52: error: вuint32_tв has a previous declaration as вtypedef unsigned int uint32_tв
./SDK/amx/amx.h:68: error: conflicting declaration вtypedef long long int int64_tв
/usr/include/stdint.h:41: error: вint64_tв has a previous declaration as вtypedef long int int64_tв
./SDK/amx/amx.h:69: error: conflicting declaration вtypedef long long unsigned int uint64_tв
/usr/include/stdint.h:56: error: вuint64_tв has a previous declaration as вtypedef long unsigned int uint64_tв
./SDK/amx/amx.h:215: warning: вpackedв attribute ignored for field of type вchar [20]в
./SDK/amx/amx.h:265: warning: вpackedв attribute ignored for field of type вcharв
./SDK/amx/amx.h:266: warning: вpackedв attribute ignored for field of type вcharв
./main.cpp:73: error: expected constructor, destructor, or type conversion before вunsignedв
./main.cpp:78: error: expected constructor, destructor, or type conversion before вboolв
./main.cpp:86: error: expected constructor, destructor, or type conversion before вvoidв
./main.cpp:138: error: expected constructor, destructor, or type conversion before вintв
./main.cpp:144: error: expected constructor, destructor, or type conversion before вintв
./main.cpp:150: error: expected constructor, destructor, or type conversion before вvoidв
make: *** [all] Fehler 1
(With the Defined Var "Linux"):
Код:
g++ -c ./SDK/*.cpp ./*.cpp -O3 -fno-strict-aliasing -fmerge-all-constants -fvisibility=hidden -Wall -I./Libraries/
In file included from ./SDK/amxplugin.cpp:33:
./SDK/amx/amx.h:215: warning: вpackedв attribute ignored for field of type вchar [20]в
./SDK/amx/amx.h:265: warning: вpackedв attribute ignored for field of type вcharв
./SDK/amx/amx.h:266: warning: вpackedв attribute ignored for field of type вcharв
./SDK/amx/amx.h:384: error: вsize_tв has not been declared
./SDK/amx/amx.h:404: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:439: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:440: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:579: error: вsize_tв has not been declared
./SDK/amxplugin.cpp:580: error: вsize_tв has not been declared
In file included from ./main.h:45,
                 from ./main.cpp:19:
./SDK/amx/amx.h:60: error: conflicting declaration вtypedef long int int32_tв
/usr/include/stdint.h:39: error: вint32_tв has a previous declaration as вtypedef int int32_tв
./SDK/amx/amx.h:61: error: conflicting declaration вtypedef long unsigned int uint32_tв
/usr/include/stdint.h:52: error: вuint32_tв has a previous declaration as вtypedef unsigned int uint32_tв
./SDK/amx/amx.h:68: error: conflicting declaration вtypedef long long int int64_tв
/usr/include/stdint.h:41: error: вint64_tв has a previous declaration as вtypedef long int int64_tв
./SDK/amx/amx.h:69: error: conflicting declaration вtypedef long long unsigned int uint64_tв
/usr/include/stdint.h:56: error: вuint64_tв has a previous declaration as вtypedef long unsigned int uint64_tв
./SDK/amx/amx.h:215: warning: вpackedв attribute ignored for field of type вchar [20]в
./SDK/amx/amx.h:265: warning: вpackedв attribute ignored for field of type вcharв
./SDK/amx/amx.h:266: warning: вpackedв attribute ignored for field of type вcharв
make: *** [all] Fehler 1
On Windows:
Код:
1>------ Neues Erstellen gestartet: Projekt: dns, Konfiguration: Release Win32 ------
1>  amxplugin.cpp
1>  main.cpp
1>c:\sprunkbuster\SDK/amx/amx.h(60): error C2371: 'int32_t': Neudefinition; unterschiedliche Basistypen
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdint.h(19): Siehe Deklaration von 'int32_t'
1>c:\sprunkbuster\SDK/amx/amx.h(61): error C2371: 'uint32_t': Neudefinition; unterschiedliche Basistypen
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdint.h(23): Siehe Deklaration von 'uint32_t'
========== Alles neu erstellen: 0 erfolgreich, Fehler bei 1, 0 ьbersprungen ==========
Have anyone a better / newer "SDK" from AMX?
Because I get the most Errors from the SDK, not from the SprungBuster.

If you could help my, I would be Happy ^^
Reply


Messages In This Thread
Plugin Compile Error - by Bubelbub - 12.04.2011, 12:38
Re: Plugin Compile Error - by iJumbo - 12.04.2011, 12:47
Re: Plugin Compile Error - by jonnyboy - 12.04.2011, 13:02
Re: Plugin Compile Error - by thiaZ_ - 12.04.2011, 13:09
AW: Re: Plugin Compile Error - by Bubelbub - 12.04.2011, 13:12

Forum Jump:


Users browsing this thread: 1 Guest(s)