07.09.2007, 14:03
When i use this on linux:
i edited that *.cpp file line:
from: #include <mysql/mysql.h>
to: #include "/usr/local/mysql/5.0.45/include/mysql/mysql.h"
then i do:
getting this:
and then:
but lmysqlclient_r.so is link to lmysqlclient_r.so.15 and it is link to lmysqlclient_r.so.15.0.0 <--- this is that lmysqlclient_r.so just renamed file. here is the pic:
so i am having problem when trying to use plugin:
any ideas?
i edited that *.cpp file line:
from: #include <mysql/mysql.h>
to: #include "/usr/local/mysql/5.0.45/include/mysql/mysql.h"
then i do:
Код:
gcc -Wall -fPIC -c sampmysql.cpp -DLINUX -ISDK/amx
Quote:
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’ |
Код:
gcc -shared -W1,-soname,sampmysql -o sampmysql.so *.o -L/usr/local/mysql/5.0.45/lib/mysql -lmysqlclient_r
so i am having problem when trying to use plugin:
Quote:
[17:29] Server Plugins [17:29] -------------- [17:29] Loading plugin: sampmysql.so [17:29] Failed (libmysqlclient.so.15: cannot open shared object file: No such file or directory) [17:29] Loaded 0 plugins. |