mathieuchartier / mcm

MCM file compressor
GNU General Public License v3.0
110 stars 24 forks source link

Error Compiling on CentOS 6 #11

Open aris1978 opened 7 years ago

aris1978 commented 7 years ago

Good day. Can you help me with compiling the mcm-0.83 on my Centos 6.4 machine? It's giving me the following error when I type ./make.sh:

In file included from CyclicBuffer.hpp:29, from Detector.hpp:30, from CM.hpp:29, from CM.cpp:24: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token In file included from Range.hpp:29, from Huffman.hpp:33, from CM.hpp:32, from CM.cpp:24: Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ')' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected '}' before end of line Model.hpp: At global scope: Model.hpp:31: error: expected declaration before end of line In file included from CyclicBuffer.hpp:29, from Detector.hpp:30, from CM.hpp:29, from Archive.hpp:29, from Archive.cpp:24: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token In file included from Range.hpp:29, from Huffman.hpp:33, from CM.hpp:32, from Archive.hpp:29, from Archive.cpp:24: Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ')' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected '}' before end of line Model.hpp: At global scope: Model.hpp:31: error: expected declaration before end of line In file included from Stream.hpp:6, from Compressor.hpp:38, from Huffman.hpp:31, from Huffman.cpp:24: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token In file included from Range.hpp:29, from Huffman.hpp:33, from Huffman.cpp:24: Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ')' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected '}' before end of line Model.hpp: At global scope: Model.hpp:31: error: expected declaration before end of line In file included from CyclicBuffer.hpp:29, from Detector.hpp:30, from CM.hpp:29, from Archive.hpp:29, from MCM.cpp:33: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token In file included from Range.hpp:29, from Huffman.hpp:33, from CM.hpp:32, from Archive.hpp:29, from MCM.cpp:33: Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ')' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected '}' before end of line Model.hpp: At global scope: Model.hpp:31: error: expected declaration before end of line In file included from Memory.hpp:27, from Memory.cpp:27: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token Memory.cpp:83: error: expected primary-expression at end of input Memory.cpp:83: error: expected ';' at end of input Memory.cpp:83: error: expected primary-expression at end of input Memory.cpp:83: error: expected ')' at end of input Memory.cpp:83: error: expected statement at end of input Memory.cpp:83: error: expected '}' at end of input In file included from Util.cpp:1: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token Util.cpp:98: error: expected primary-expression at end of input Util.cpp:98: error: expected ';' at end of input Util.cpp:98: error: expected primary-expression at end of input Util.cpp:98: error: expected ')' at end of input Util.cpp:98: error: expected statement at end of input Util.cpp:98: error: expected '}' at end of input In file included from Stream.hpp:6, from Compressor.hpp:38, from Compressor.cpp:24: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token Compressor.cpp:124: error: expected primary-expression at end of input Compressor.cpp:124: error: expected ';' at end of input Compressor.cpp:124: error: expected primary-expression at end of input Compressor.cpp:124: error: expected ')' at end of input Compressor.cpp:124: error: expected statement at end of input Compressor.cpp:124: error: expected '}' at end of input In file included from CyclicBuffer.hpp:29, from LZ.hpp:27, from LZ.cpp:24: Util.hpp: In function 'void printIndexedArray(const std::string&, const T&)': Util.hpp:147: error: expected initializer before ':' token In file included from LZ.hpp:30, from LZ.cpp:24: Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ')' before end of line Model.hpp:31: error: expected primary-expression before end of line Model.hpp:31: error: expected ';' before end of line Model.hpp:31: error: expected '}' before end of line Model.hpp: At global scope: Model.hpp:31: error: expected declaration before end of line

aris1978 commented 7 years ago

Ahh well, I guess this is an old compiler issue. Centos 6 comes with gcc 4.4.7. If you have any solution, it's very appreciated.