Compile Error - Ubuntu LTS 14.04
Posted: Thu Nov 06, 2014 8:59 pm
Hi Guys,
I'm running into an issue compiling from a pull from the git today.
I'e run into this issue during the make process:
ffxi@ffxidsp:~/darkstar$ make
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 -DTAOCRYPT_DISABLE_X86ASM -g -DNDEBUG -g -O2 -MT dsgame-luautils.o -MD -MP -MF .deps/dsgame-luautils.Tpo -c -o dsgame-luautils.o `test -f 'src/map/lua/luautils.cpp' || echo './'`src/map/lua/luautils.cpp
src/map/lua/luautils.cpp: In function ‘bool luautils::IsExpansionEnabled(const char*)’:
src/map/lua/luautils.cpp:993:11: error: ‘TRUE’ was not declared in this scope
return TRUE;
^
src/map/lua/luautils.cpp:997:9: error: ‘FALSE’ was not declared in this scope
return FALSE;
^
make: *** [dsgame-luautils.o] Error 1
ffxi@ffxidsp:~/darkstar$
Here's the related structure in the .cpp
bool IsExpansionEnabled(const char* expansionCode)
{
if (expansionCode != NULL){
char* expansionVariable = new char[14];
sprintf(expansionVariable, "ENABLE_%s", expansionCode);
uint8 expansionEnabled = GetSettingsVariable(expansionVariable);
if (expansionEnabled == 0){
return TRUE;
}
}
return FALSE;
}
Any ideas for a quick fix? I need to test some issues with sagheera and I haven't made my test server compliant with my game client in a while.
Thanks!
I'm running into an issue compiling from a pull from the git today.
I'e run into this issue during the make process:
ffxi@ffxidsp:~/darkstar$ make
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 -DTAOCRYPT_DISABLE_X86ASM -g -DNDEBUG -g -O2 -MT dsgame-luautils.o -MD -MP -MF .deps/dsgame-luautils.Tpo -c -o dsgame-luautils.o `test -f 'src/map/lua/luautils.cpp' || echo './'`src/map/lua/luautils.cpp
src/map/lua/luautils.cpp: In function ‘bool luautils::IsExpansionEnabled(const char*)’:
src/map/lua/luautils.cpp:993:11: error: ‘TRUE’ was not declared in this scope
return TRUE;
^
src/map/lua/luautils.cpp:997:9: error: ‘FALSE’ was not declared in this scope
return FALSE;
^
make: *** [dsgame-luautils.o] Error 1
ffxi@ffxidsp:~/darkstar$
Here's the related structure in the .cpp
bool IsExpansionEnabled(const char* expansionCode)
{
if (expansionCode != NULL){
char* expansionVariable = new char[14];
sprintf(expansionVariable, "ENABLE_%s", expansionCode);
uint8 expansionEnabled = GetSettingsVariable(expansionVariable);
if (expansionEnabled == 0){
return TRUE;
}
}
return FALSE;
}
Any ideas for a quick fix? I need to test some issues with sagheera and I haven't made my test server compliant with my game client in a while.
Thanks!