Compilation error on Arch Linux x64
[ 68%] Building CXX object CMakeFiles/stonesense.dir/GUI.cpp.o
/home/cray/stonesense/GUI.cpp: In function ‘ALLEGRO_COLOR getDayShade(int, int)’:
/home/cray/stonesense/GUI.cpp:91:74: error: invalid initialization of non-const reference of type ‘ALLEGRO_COLOR&’ from an rvalue of type ‘ALLEGRO_COLOR’
/home/cray/stonesense/GUI.cpp:70:15: error: in passing argument 2 of ‘ALLEGRO_COLOR partialBlend(ALLEGRO_COLOR&, ALLEGRO_COLOR&, int)’
/home/cray/stonesense/GUI.cpp:93:69: error: invalid initialization of non-const reference of type ‘ALLEGRO_COLOR&’ from an rvalue of type ‘ALLEGRO_COLOR’
/home/cray/stonesense/GUI.cpp:70:15: error: in passing argument 1 of ‘ALLEGRO_COLOR partialBlend(ALLEGRO_COLOR&, ALLEGRO_COLOR&, int)’
/home/cray/stonesense/GUI.cpp: In function ‘void drawDebugCursorAndInfo()’:
/home/cray/stonesense/GUI.cpp:335:9: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:340:9: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:345:9: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:350:9: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:384:28: error: ‘itoa’ was not declared in this scope
/home/cray/stonesense/GUI.cpp: In function ‘void loadGraphicsFromDisk()’:
/home/cray/stonesense/GUI.cpp:737:35: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:739:37: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:741:33: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:743:41: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp: In function ‘void flushImgFiles()’:
/home/cray/stonesense/GUI.cpp:751:35: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp: In function ‘int loadImgFile(char*)’:
/home/cray/stonesense/GUI.cpp:816:51: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:819:70: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:847:40: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:856:56: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:885:56: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:915:40: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp: In function ‘void saveMegashot()’:
/home/cray/stonesense/GUI.cpp:1015:57: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:1023:32: warning: deprecated conversion from string constant to ‘char*’
/home/cray/stonesense/GUI.cpp:1027:72: warning: deprecated conversion from string constant to ‘char*’
make[2]: *** [CMakeFiles/stonesense.dir/GUI.cpp.o] Error 1
make[1]: *** [CMakeFiles/stonesense.dir/all] Error 2
make: *** [all] Error 2