scope error on compile
Posted: Thu Mar 26, 2015 11:20 am
getting error on compile with SqlHandle, I tried including "map.h" but still no luck.
g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common -DdsUDPSERV -I/usr//include/luajit-2.0 -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -g -O2 -MT dsgame-ability.o -MD -MP -MF .deps/dsgame-ability.Tpo -c -o dsgame-ability.o `test -f 'src/map/ability.cpp' || echo './'`src/map/ability.cpp
In file included from src/map/lua/../entities/../party.h:27:0,
from src/map/lua/../entities/battleentity.h:35,
from src/map/lua/luautils.h:29,
from src/map/ability.cpp:24:
src/map/lua/../entities/../map.h:160:8: error: 'thread_local' does not name a type
src/map/ability.cpp: In function 'void ability::LoadAbilitiesList()':
src/map/ability.cpp:295:28: error: 'SqlHandle' was not declared in this scope
make: *** [dsgame-ability.o] Error 1
g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common -DdsUDPSERV -I/usr//include/luajit-2.0 -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -g -O2 -MT dsgame-ability.o -MD -MP -MF .deps/dsgame-ability.Tpo -c -o dsgame-ability.o `test -f 'src/map/ability.cpp' || echo './'`src/map/ability.cpp
In file included from src/map/lua/../entities/../party.h:27:0,
from src/map/lua/../entities/battleentity.h:35,
from src/map/lua/luautils.h:29,
from src/map/ability.cpp:24:
src/map/lua/../entities/../map.h:160:8: error: 'thread_local' does not name a type
src/map/ability.cpp: In function 'void ability::LoadAbilitiesList()':
src/map/ability.cpp:295:28: error: 'SqlHandle' was not declared in this scope
make: *** [dsgame-ability.o] Error 1