Git Product home page Git Product logo

brainparty's People

Contributors

thp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sledges

brainparty's Issues

error: template argument 2 is invalid and other errors

admin brainparty make
Package SDL2_mixer was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_mixer.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_mixer' found
Package SDL2_ttf was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_ttf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_ttf' found
Package SDL2_image was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_image.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_image' found
g++ -c  -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/BPGame.o src/BPGame.cpp
In file included from src/minigames/wordsmash.h:22:0,
                 from src/BPGame.cpp:62:
src/WordList.h:39:44: error: template argument 2 is invalid
 typedef unordered_set<string, hash<string> string_hash_set;
                                            ^~~~~~~~~~~~~~~
src/WordList.h:39:1: warning: ‘typedef’ was ignored in this declaration
 typedef unordered_set<string, hash<string> string_hash_set;
 ^~~~~~~
src/WordList.h:43:2: error: ‘string_hash_set’ does not name a type
  string_hash_set Words;
  ^~~~~~~~~~~~~~~
src/WordList.h: In constructor ‘WordList::WordList(const string&)’:
src/WordList.h:56:5: error: ‘Words’ was not declared in this scope
     Words.insert(word);
     ^~~~~
src/WordList.h: In destructor ‘WordList::~WordList()’:
src/WordList.h:65:3: error: ‘Words’ was not declared in this scope
   Words.clear();
   ^~~~~
src/WordList.h: In member function ‘bool WordList::Contains(std::__cxx11::string)’:
src/WordList.h:69:3: error: ‘string_hash_set’ has not been declared
   string_hash_set::const_iterator it = Words.find(string);
   ^~~~~~~~~~~~~~~
src/WordList.h:71:7: error: ‘it’ was not declared in this scope
   if (it != Words.end()) {
       ^~
src/WordList.h:71:13: error: ‘Words’ was not declared in this scope
   if (it != Words.end()) {
             ^~~~~
src/BPGame.cpp: In member function ‘void BPGame::DrawLine(int, int, int, int, Colour*, float)’:
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘fromx’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
  GLfloat vertices[] = { fromx, fromy, tox, toy };
                                                ^
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘fromy’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘tox’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘toy’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
makefile:25: Error performing the recipe for the target «src/BPGame.o»
make: *** [src/BPGame.o] Error 1

I was looking for a solution on the Internet but I did not find it, this solution does not help: http://debian-bugs-rc.debian.narkive.com/8JQzeVx8/bug-811885-brainparty-ftbfs-with-gcc-6-template-argument-x-is-invalid
My system:

Linux mx1 4.7.0-0.bpo.1-amd64 #1 SMP MX 4.7.8-1mx16+3 (2017-02-23) x86_64 GNU/Linux

My g++

g++ (Debian 6.3.0-18) 6.3.0 20170516

I hope for an early correction!

error: no match for call to ‘(const hasher {aka const __gnu_cxx::hash<std::__cxx11::basic_string<char> >}) (const key_type&)’

Log:

g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/SpriteFont.o src/SpriteFont.cpp
g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/MessageBox.o src/MessageBox.cpp
g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/Audio.o src/Audio.cpp
g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/Main.o src/Main.cpp
g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/Texture.o src/Texture.cpp
g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/Colour.o src/Colour.cpp
g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/BPPoint.o src/BPPoint.cpp
g++ -c -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm -O2 -Wno-deprecated -Isrc -Isrc/minigames -Iplatform/desktop -o src/BPGame.o src/BPGame.cpp
In file included from src/minigames/wordsmash.h:22:0,
                 from src/BPGame.cpp:62:
src/WordList.h:28:20: error: extra qualification not allowed [-fpermissive]
  template<> struct __gnu_cxx::hash< std::string >
                    ^~~~~~~~~
src/WordList.h:29:2: error: explicit specialization of non-template ‘__gnu_cxx::<anonymous struct>’
  {
  ^
src/WordList.h:28:31: error: an anonymous struct cannot have function members
  template<> struct __gnu_cxx::hash< std::string >
                               ^~~~~~~~~~~~~~~~~~~
src/WordList.h:34:3: error: abstract declarator ‘__gnu_cxx::<anonymous struct>’ used as declaration
  };
   ^
src/BPGame.cpp: In member function ‘void BPGame::DrawLine(int, int, int, int, Colour*, float)’:
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘fromx’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
  GLfloat vertices[] = { fromx, fromy, tox, toy };
                                                ^
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘fromy’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘tox’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
src/BPGame.cpp:1517:48: warning: narrowing conversion of ‘toy’ from ‘int’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
In file included from /usr/include/c++/6/ext/hash_set:64:0,
                 from src/WordList.h:22,
                 from src/minigames/wordsmash.h:22,
                 from src/BPGame.cpp:62:
/usr/include/c++/6/backward/hashtable.h: In instantiation of ‘__gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const key_type&, std::size_t) const [with _Val = std::__cxx11::basic_string<char>; _Key = std::__cxx11::basic_string<char>; _HashFcn = __gnu_cxx::hash<std::__cxx11::basic_string<char> >; _ExtractKey = std::_Identity<std::__cxx11::basic_string<char> >; _EqualKey = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type = long unsigned int; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::key_type = std::__cxx11::basic_string<char>; std::size_t = long unsigned int]’:
/usr/include/c++/6/backward/hashtable.h:601:30:   required from ‘__gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const key_type&) const [with _Val = std::__cxx11::basic_string<char>; _Key = std::__cxx11::basic_string<char>; _HashFcn = __gnu_cxx::hash<std::__cxx11::basic_string<char> >; _ExtractKey = std::_Identity<std::__cxx11::basic_string<char> >; _EqualKey = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type = long unsigned int; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::key_type = std::__cxx11::basic_string<char>]’
/usr/include/c++/6/backward/hashtable.h:536:32:   required from ‘__gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::const_iterator __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::find(const key_type&) const [with _Val = std::__cxx11::basic_string<char>; _Key = std::__cxx11::basic_string<char>; _HashFcn = __gnu_cxx::hash<std::__cxx11::basic_string<char> >; _ExtractKey = std::_Identity<std::__cxx11::basic_string<char> >; _EqualKey = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::const_iterator = __gnu_cxx::_Hashtable_const_iterator<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, __gnu_cxx::hash<std::__cxx11::basic_string<char> >, std::_Identity<std::__cxx11::basic_string<char> >, std::equal_to<std::__cxx11::basic_string<char> >, std::allocator<std::__cxx11::basic_string<char> > >; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::key_type = std::__cxx11::basic_string<char>]’
/usr/include/c++/6/ext/hash_set:214:32:   required from ‘__gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::iterator __gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::find(const key_type&) const [with _Value = std::__cxx11::basic_string<char>; _HashFcn = __gnu_cxx::hash<std::__cxx11::basic_string<char> >; _EqualKey = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; __gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::iterator = __gnu_cxx::_Hashtable_const_iterator<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, __gnu_cxx::hash<std::__cxx11::basic_string<char> >, std::_Identity<std::__cxx11::basic_string<char> >, std::equal_to<std::__cxx11::basic_string<char> >, std::allocator<std::__cxx11::basic_string<char> > >; __gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::key_type = std::__cxx11::basic_string<char>]’
src/WordList.h:67:57:   required from here
/usr/include/c++/6/backward/hashtable.h:609:31: error: no match for call to ‘(const hasher {aka const __gnu_cxx::hash<std::__cxx11::basic_string<char> >}) (const key_type&)’
       { return _M_hash(__key) % __n; }**
**

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.