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
#2

I think not all here know how to compile a plugin
Reply
#3

this need to be in english. and it need to be on pawno not AMXMOD X compiler
Reply
#4

Quote:
Originally Posted by jonnyboy
Посмотреть сообщение
this need to be in english. and it need to be on pawno not AMXMOD X compiler
Please don't reply here when you have no clue about plugin development, and well, as it was already marked here this is not a C/C++ help forum, but your Windows error message seems to be very clear, you re-defined a variable called int32_t and uint32_t. Also the Sprunkbuster project hasn't been continued the past months/years so you probably won't get any support from the initial developer.

Edit: ****** was faster.
Reply
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
I've never heard of a sprunkbuster plugin and it jonnyboy is right then that's because one doesn't exist for SA:MP. If it is for SA:MP then post in the plugin's topic (remember that this is not a C help forum - if you need help in that regard try a general C forum).
https://sampforum.blast.hk/showthread.php?tid=75605


Quote:

Also the Sprunkbuster project hasn't been continued the past months/years so you probably won't get any support from the initial developer.

Can you give me a newer "Blank" Plugin?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)