Cuberite Forum

Full Version: CentOS Compile Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to compile the server on CentOS and it goes great until I get the following error:

source/LuaState.cpp:35: error: uninitialized const âcLuaState::Returnâ
make: *** [build/release/source/LuaState.o] Error 1

Line 35 contains "const cLuaState::cRet cLuaState::Return;" Is there anything I can do to fix this error?


Please help me out a bit Smile

ThijsD
Hello, welcome to the forum.
What is your compiler version? It seems that the compilers don't agree on interpreting the standard here, both gcc and msvc don't have a problem with this line.
Thank you,
It appears to be GCC version 4.4.7
I was lucky, I showed this error to my colleague and he said he knows this behavior, so he proposed a fix. Can you retry with current git master code?
Yup, That fixed it! Thank you! Smile
(08-15-2013, 09:33 PM)ThijsD Wrote: [ -> ]Yup, That fixed it! Thank you! Smile

That's good news cuz I run my production servers on Centos, and hope to eventually have a MC Server running on one of my Centos instances. For now, running on Fedora and Ubuntu.