I'm trying to install cppcheck as requested by pindel
However, I downloaded cppcheck-1.72.tar.gz
make install
showed the following error message
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/astutils.o lib/astutils.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/check.o lib/check.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/check64bit.o lib/check64bit.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkassert.o lib/checkassert.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkautovariables.o lib/checkautovariables.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkbool.o lib/checkbool.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkboost.o lib/checkboost.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkbufferoverrun.o lib/checkbufferoverrun.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkclass.o lib/checkclass.cpp
lib/checkclass.cpp: In member function ‘void CheckClass::checkConst()’:
lib/checkclass.cpp:1704: error: ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ has no member named ‘back’
make: *** [lib/checkclass.o] Error 1
[guest06@h71 cppcheck-1.72]$ make
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkclass.o lib/checkclass.cpp
lib/checkclass.cpp: In member function ‘void CheckClass::checkConst()’:
lib/checkclass.cpp:1704: error: ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ has no member named ‘back’
make: *** [lib/checkclass.o] Error 1
Does anyone know how to solve this?
Thanks for the help
However, I downloaded cppcheck-1.72.tar.gz
make install
showed the following error message
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/astutils.o lib/astutils.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/check.o lib/check.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/check64bit.o lib/check64bit.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkassert.o lib/checkassert.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkautovariables.o lib/checkautovariables.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkbool.o lib/checkbool.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkboost.o lib/checkboost.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkbufferoverrun.o lib/checkbufferoverrun.cpp
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkclass.o lib/checkclass.cpp
lib/checkclass.cpp: In member function ‘void CheckClass::checkConst()’:
lib/checkclass.cpp:1704: error: ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ has no member named ‘back’
make: *** [lib/checkclass.o] Error 1
[guest06@h71 cppcheck-1.72]$ make
g++ -Ilib -Iexternals/tinyxml -std=c++0x -O2 -include lib/cxx11emu.h -DNDEBUG -Wall -Wno-sign-compare -std=c++0x -c -o lib/checkclass.o lib/checkclass.cpp
lib/checkclass.cpp: In member function ‘void CheckClass::checkConst()’:
lib/checkclass.cpp:1704: error: ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ has no member named ‘back’
make: *** [lib/checkclass.o] Error 1
Does anyone know how to solve this?
Thanks for the help