Public bug reported: After i execute ./configure and it have a OK i have execute the Make to compile and got this error my guess is c++ 11 not selected but i'm not sure and i don't know what do now
g++ -DHAVE_CONFIG_H -I. -I./src -I./src -g -O2 -MT src/lierolibre-common.o -MD -MP -MF src/.deps/lierolibre-common.Tpo -c -o src/lierolibre-common.o `test -f 'src/common.cpp' || echo './'`src/common.cpp In file included from src/gfx.hpp:41:0, from src/common.cpp:33: src/menu/menu.hpp: In member function ‘bool Menu::onLeftRight(Common&, int)’: src/menu/menu.hpp:100:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<ItemBehavior> b(getItemBehavior(common, selection())); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from src/gfx.hpp:41:0, from src/common.cpp:33: src/menu/menu.hpp: In member function ‘int Menu::onEnter(Common&)’: src/menu/menu.hpp:106:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<ItemBehavior> b(getItemBehavior(common, selection())); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from src/gfx.hpp:41:0, from src/common.cpp:33: src/menu/menu.hpp: In member function ‘void Menu::updateItems(Common&)’: src/menu/menu.hpp:114:9: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<ItemBehavior> b(getItemBehavior(common, i)); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from ./src/gvl/serialization/archive.hpp:31:0, from src/worm.hpp:39, from src/settings.hpp:31, from src/gfx.hpp:46, from src/common.cpp:33: ./src/gvl/io/encoding.hpp: At global scope: ./src/gvl/io/encoding.hpp:314:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<bucket> first_; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from ./src/gvl/serialization/archive.hpp:31:0, from src/worm.hpp:39, from src/settings.hpp:31, from src/gfx.hpp:46, from src/common.cpp:33: ./src/gvl/io/encoding.hpp:508:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<bucket_data_mem> buffer_; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from ./src/gvl/serialization/archive.hpp:31:0, from src/worm.hpp:39, from src/settings.hpp:31, from src/gfx.hpp:46, from src/common.cpp:33: ./src/gvl/io/encoding.hpp: In member function ‘void gvl::octet_stream_writer::swap(gvl::octet_stream_writer&)’: ./src/gvl/io/encoding.hpp:459:9: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<bucket_data_mem> tmp = buffer_; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from src/settings.hpp:31:0, from src/gfx.hpp:46, from src/common.cpp:33: src/worm.hpp: At global scope: src/worm.hpp:435:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<WormAI> ai; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from src/common.cpp:33:0: src/gfx.hpp:266:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] std::auto_ptr<Controller> controller; ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from src/menu/menu.hpp:35, from src/gfx.hpp:41, from src/common.cpp:33: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ src/common.cpp: In member function ‘void Texts::loadFromCFG(std::__cxx11::string)’: src/common.cpp:165:38: error: no match for ‘operator[]’ (operand types are ‘const libconfig::Setting’ and ‘std::__cxx11::basic_string<char>’) gameModes[i] = (char const*)sgmodes["gameModes" + to_string(i)]; ^ In file included from src/common.hpp:41:0, from src/common.cpp:28: /usr/include/libconfig.h++:223:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](const char*) const Setting & operator[](const char *name) const; ^~~~~~~~ /usr/include/libconfig.h++:223:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘const char*’ /usr/include/libconfig.h++:224:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](int) const Setting & operator[](int index) const; ^~~~~~~~ /usr/include/libconfig.h++:224:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘int’ src/common.cpp:184:41: error: no match for ‘operator[]’ (operand types are ‘const libconfig::Setting’ and ‘std::__cxx11::basic_string<char>’) weapStates[i] = (char const*)swstates["weapStates" + to_string(i)]; ^ In file included from src/common.hpp:41:0, from src/common.cpp:28: /usr/include/libconfig.h++:223:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](const char*) const Setting & operator[](const char *name) const; ^~~~~~~~ /usr/include/libconfig.h++:223:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘const char*’ /usr/include/libconfig.h++:224:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](int) const Setting & operator[](int index) const; ^~~~~~~~ /usr/include/libconfig.h++:224:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘int’ src/common.cpp:190:37: error: no match for ‘operator[]’ (operand types are ‘const libconfig::Setting’ and ‘std::__cxx11::basic_string<char>’) keyNames[i] = (char const*)sknames["keyNames" + to_string(i)]; ^ In file included from src/common.hpp:41:0, from src/common.cpp:28: /usr/include/libconfig.h++:223:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](const char*) const Setting & operator[](const char *name) const; ^~~~~~~~ /usr/include/libconfig.h++:223:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘const char*’ /usr/include/libconfig.h++:224:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](int) const Setting & operator[](int index) const; ^~~~~~~~ /usr/include/libconfig.h++:224:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘int’ src/common.cpp: In member function ‘void Common::loadPaletteFromCFG(std::__cxx11::string)’: src/common.cpp:318:34: error: no match for ‘operator[]’ (operand types are ‘const libconfig::Setting’ and ‘std::__cxx11::basic_string<char>’) colorAnim[i].from = (int)scanim["colorAnim" + to_string(i) + "from"]; ^ In file included from src/common.hpp:41:0, from src/common.cpp:28: /usr/include/libconfig.h++:223:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](const char*) const Setting & operator[](const char *name) const; ^~~~~~~~ /usr/include/libconfig.h++:223:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘const char*’ /usr/include/libconfig.h++:224:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](int) const Setting & operator[](int index) const; ^~~~~~~~ /usr/include/libconfig.h++:224:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘int’ src/common.cpp:319:32: error: no match for ‘operator[]’ (operand types are ‘const libconfig::Setting’ and ‘std::__cxx11::basic_string<char>’) colorAnim[i].to = (int)scanim["colorAnim" + to_string(i) + "to"]; ^ In file included from src/common.hpp:41:0, from src/common.cpp:28: /usr/include/libconfig.h++:223:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](const char*) const Setting & operator[](const char *name) const; ^~~~~~~~ /usr/include/libconfig.h++:223:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘const char*’ /usr/include/libconfig.h++:224:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](int) const Setting & operator[](int index) const; ^~~~~~~~ /usr/include/libconfig.h++:224:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘int’ src/common.cpp: In member function ‘void Common::loadMaterialsFromCFG(std::__cxx11::string)’: src/common.cpp:386:49: error: no match for ‘operator[]’ (operand types are ‘const libconfig::Setting’ and ‘std::__cxx11::basic_string<char>’) const libconfig::Setting &smflags = smaterials["flags" + to_string(i)]; ^ In file included from src/common.hpp:41:0, from src/common.cpp:28: /usr/include/libconfig.h++:223:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](const char*) const Setting & operator[](const char *name) const; ^~~~~~~~ /usr/include/libconfig.h++:223:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘const char*’ /usr/include/libconfig.h++:224:13: note: candidate: libconfig::Setting& libconfig::Setting::operator[](int) const Setting & operator[](int index) const; ^~~~~~~~ /usr/include/libconfig.h++:224:13: note: no known conversion for argument 1 from ‘std::__cxx11::basic_string<char>’ to ‘int’ Makefile:1714: recipe for target 'src/lierolibre-common.o' failed make: *** [src/lierolibre-common.o] Error 1 ** Affects: lierolibre (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780553 Title: compile Fail To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lierolibre/+bug/1780553/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs