10.11.2011, 21:34
(
Последний раз редактировалось whitedragon; 10.11.2011 в 22:40.
)
Quote:
root@server:~/compile/mysql_rel# make
gcc -c -O3 -w -DLINUX -Wall -I../SDK/amx/ ../SDK/amx/*.c g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ ../SDK/*.cpp g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ main.cpp g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ source/*.cpp g++ -O2 -fshort-wchar -shared -o "../mysql.so" *.o -L/usr/lib/mysql -lmysqlclient_r -lpthread /usr/bin/ld: CAmxString.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC CAmxString.o: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [all] Error 1 Can samone help to fix it`? |
Quote:
Cool, but the mysql_connect(host, user, database, password) is not returning correctly...
pawn Код:
debug.txt Код:
[14:37:46] MySQL Debugging activated (11/10/11) [14:37:46] --------------------------- [14:37:46] [14:37:46] >> mysql_connect( ) [14:37:46] CMySQLHandler::CMySQLHandler() - constructor called. [14:37:46] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "server" | Username: "TheLazySloth" ... [14:37:47] CMySQLHandler::Connect() - Can't connect to MySQL server on 'localhost' (10061) (Error ID: 2003) |
pawn Код:
if(mysql.ping() == 1)