PHP Code:
root@vps1192094:~/mysqlx# make basic_sql
g++ -I. -I/root/hlsdk/multiplayer -I/root/hlsdk/multiplayer/common -I/root/hlsdk/multiplayer/dlls -I/root/hlsdk/multiplayer/engine -I/root/hlsdk/multiplayer/game_shared -I/root/metamod/metamod -I/root/mysql/include -Ithread -Imysql -Isdk -DLINUX -DLINUX -DAMX_NOPROPLIST -Wall -DHAVE_STDINT_H -static-libgcc -fno-rtti -fno-exceptions -Wno-write-strings -Wno-deprecated -DNDEBUG -O2 -funroll-loops -fomit-frame-pointer -pipe -fvisibility=hidden -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -o Release/basic_sql.o -c basic_sql.cpp
In file included from sdk/amxxmodule.h:16,
from mysql2_header.h:5,
from basic_sql.cpp:3:
/root/hlsdk/multiplayer/dlls/extdll.h:29: warning: ignoring #pragma warning
/root/hlsdk/multiplayer/dlls/extdll.h:30: warning: ignoring #pragma warning
/root/hlsdk/multiplayer/dlls/extdll.h:31: warning: ignoring #pragma warning
/root/hlsdk/multiplayer/dlls/extdll.h:32: warning: ignoring #pragma warning
/root/hlsdk/multiplayer/dlls/extdll.h:33: warning: ignoring #pragma warning
In file included from basic_sql.cpp:3:
mysql2_header.h:53: error: 'MainThreader' does not name a type
basic_sql.cpp: In function 'cell SQL_SetAffinity(AMX*, cell*)':
basic_sql.cpp:452: error: 'stricmp' was not declared in this scope
make: *** [Release/basic_sql.o] Error 1
root@vps1192094:~/mysqlx# 'stricmp' was not declared in this scope
wtf?
CFLAGS += -DLINUX -DAMX_NOPROPLIST -Wall -DHAVE_STDINT_H -static-libgcc -fno-rtti -fno-exceptions -Wno-write-strings -Wno-deprecated
CPPFLAGS += -fno-exceptions -fno-rtti
I fixed previous problem changing PROJECT = mysql to PROJECT = basic_sql
But i cant compile..
__________________