首先:这是事情。 https://github.com/oscar-broman/sky
应该编译为.dll
我不知道从哪里开始,但我已经尝试过制作'在cygwin。这显然是错误的做法......
$ make
rm -f *~ *.o *.so
gcc -m32 -D SKY -g -c -fPIC -w -D LINUX ./lib/sdk/*.cpp
In file included from ./lib/sdk/plugin.h:8:0,
from ./lib/sdk/amxplugin.cpp:13:
./lib/sdk/plugincommon.h:40:4: error: #error "Unknown operating system."
#error "Unknown operating system."
^
In file included from ./lib/sdk/plugin.h:9:0,
from ./lib/sdk/amxplugin.cpp:13:
./lib/sdk/amx/amx.h:381:72: error: ‘size_t’ has not been declared
int AMXAPI amx_GetString(char *dest,const cell *source, int use_wchar, size_t size);
^
./lib/sdk/amx/amx.h:401:83: error: ‘size_t’ has not been declared
int AMXAPI amx_SetString(cell *dest, const char *source, int pack, int use_wchar, size_t size);
^
./lib/sdk/amxplugin.cpp:142:86: error: ‘size_t’ has not been declared
typedef int AMXAPI (*amx_GetString_t)(char *dest,const cell *source, int use_wchar, size_t size);
^
./lib/sdk/amxplugin.cpp:143:72: error: ‘size_t’ has not been declared
int AMXAPI amx_GetString(char *dest,const cell *source, int use_wchar, size_t size)
^
./lib/sdk/amxplugin.cpp:282:97: error: ‘size_t’ has not been declared
typedef int AMXAPI (*amx_SetString_t)(cell *dest, const char *source, int pack, int use_wchar, size_t size);
^
./lib/sdk/amxplugin.cpp:283:83: error: ‘size_t’ has not been declared
int AMXAPI amx_SetString(cell *dest, const char *source, int pack, int use_wchar, size_t size)
^
makefile:22: recipe for target 'SKY' failed
make: *** [SKY] Error 1
我认为gcc是installed
编译该源需要做些什么?
答案 0 :(得分:0)
我查看了代码。此代码需要使用GCC在GNU / Linux,FreeBSD或OpenBSD上编译,或者使用MS Visual C ++在Windows上编译。它不支持使用GCC(cygwin)在Windows上编译。
至于格式化,如果你read the docs而不是仅仅猜测很多不同的东西,那么它就更容易实现。