12.04.2011, 12:38
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:
(With the Defined Var "Linux"):
On Windows:
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 ^^
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
Код:
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
Код:
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 ==========
Because I get the most Errors from the SDK, not from the SprungBuster.
If you could help my, I would be Happy ^^