Help with plugin development in linux
#3

Now it compiles after I defined LINUX (actually it also required -m32 flag when compiling). But when server tries to load plugin, it says this:

Code:
[16:58:39] 
[16:58:39] Server Plugins
[16:58:39] --------------
[16:58:39]  Loading plugin: plugin.so
[16:58:39]   Failed (plugins/plugin.so: undefined symbol: pAMXFunctions)
[16:58:39]  Loaded 0 plugins.
EDIT: Got it working, if someone have same problem, use these lines to compile and link everything:
Code:
g++ -m32 -c -fPIC -DLINUX -std=c++0x plugin.cpp
g++ -m32 -c -fPIC -DLINUX SDK/*.cpp
gcc -m32 -c -fPIC -DLINUX SDK/amx/*.c
g++ -m32 -O2 -fshort-wchar -shared -o plugin.so *.o
Reply


Messages In This Thread
Help with plugin development in linux - by Daslee - 15.06.2015, 09:32
AW: Help with plugin development in linux - by FSAOskar - 15.06.2015, 12:47
Re: Help with plugin development in linux - by Daslee - 15.06.2015, 14:05

Forum Jump:


Users browsing this thread: 3 Guest(s)