Giter Club home page Giter Club logo

supermariohd's Introduction

SuperMarioHD

MARIO logo Cross-platform HD remake of Super Mario Bros. (NES, 1985).
Project was created for learning purposes only.
The game demo on the YouTube: https://youtu.be/RJ181cc_AMI

Windows

1. Install a C++11 compiler:
Visual Studio Community: https://visualstudio.microsoft.com/downloads/ or MinGW https://osdn.net/projects/mingw/releases/

2. Install Git:
https://git-scm.com/downloads

3. Install CMake:
https://cmake.org/download

4. Install OpenAL:
https://www.openal.org/downloads

5. Open git-bash and type:

git clone https://github.com/PfAndrey/supermariohd.git --recursive
cd supermariohd 
mkdir build && cd build
cmake ..
cmake --build . --config Release
./SuperMario

Ubuntu

1. install git cmake and g++

sudo apt-get -y install cmake git g++ 

2. install additional packets (OpenGL, OpenAL etc)

sudo apt-get -y install libx11-dev libudev-dev xorg-dev freeglut3-dev libalut-dev libvorbis-dev libflac-dev

3. download mario repo

git clone https://github.com/PfAndrey/supermariohd.git --recursive

4. build project

cd supermariohd
mkdir build && cd build
cmake ..
cmake --build . --config Release
./SuperMario

Mac OS

1. install xcode:
https://developer.apple.com/xcode/

2. Install Git:
https://git-scm.com/downloads

3. Install CMake:
https://cmake.org/download

4. build project
Go to terminal and type:

git clone https://github.com/PfAndrey/supermariohd.git --recursive
cd supermariohd
mkdir build && cd build
cmake ..
sudo cmake --build . --config Release
./SuperMario

supermariohd's People

Contributors

pfandrey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

supermariohd's Issues

Fail build on macOS

Hello - I give a try to build on apple silicon and intel base mac and fail all the time on this same thing
Log below.

Thank you so much for any help.

[ 61%] Completed 'TinyXml2'
[ 61%] Built target TinyXml2
[ 65%] Building CXX object CMakeFiles/SuperMario.dir/source/Blocks.cpp.o
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:1:
In file included from /Users/naymapl/supermariohd/source/Blocks.h:4:
In file included from /Users/naymapl/supermariohd/source/TileMap.h:6:
In file included from /Users/naymapl/supermariohd/source/Geometry.h:4:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/Graphics.hpp:32:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/Window.hpp:32:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/System.hpp:34:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/System/Err.hpp:32:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ostream:137:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ios:215:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string:511:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string_view:179:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__string:57:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/algorithm:650:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/type_traits:1797:38: error: implicit instantiation of undefined template 'std::hash<sf::Keyboard::Key>'
    : public integral_constant<bool, __is_empty(_Tp)> {};
                                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/unordered_map:451:18: note: in instantiation of template class 'std::is_empty<std::hash<sf::Keyboard::Key>>' requested here
          bool = is_empty<_Hash>::value && !__libcpp_is_final<_Hash>::value>
                 ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/unordered_map:934:13: note: in instantiation of default argument for '__unordered_map_hasher<sf::Keyboard::Key, std::__hash_value_type<sf::Keyboard::Key, bool>, std::hash<sf::Keyboard::Key>, std::equal_to<sf::Keyboard::Key>>' required here
    typedef __unordered_map_hasher<key_type, __value_type, hasher, key_equal> __hasher;
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/naymapl/supermariohd/source/GameEngine.h:280:46: note: in instantiation of template class 'std::unordered_map<sf::Keyboard::Key, bool>' requested here
        std::unordered_map<sf::Keyboard::Key, bool> m_keys_prev, *m_keys_prev_ptr, m_keys_now, *m_keys_now_ptr;
                                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/type_traits:431:50: note: template is declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
                                                 ^
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:1:
/Users/naymapl/supermariohd/source/Blocks.h:79:15: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void draw(sf::RenderWindow* render_window);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:20:15: note: overridden virtual function is here
        virtual void draw(sf::RenderWindow* render_window);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:81:15: warning: 'update' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void update(int delta_time);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:21:15: note: overridden virtual function is here
        virtual void update(int delta_time);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:92:15: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void draw(sf::RenderWindow* render_window);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:20:15: note: overridden virtual function is here
        virtual void draw(sf::RenderWindow* render_window);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:94:15: warning: 'update' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void update(int delta_time);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:21:15: note: overridden virtual function is here
        virtual void update(int delta_time);
                     ^
/Users/naymapl/supermariohd/source/Blocks.h:176:3: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
                CMarioGame::instance()->playSound("bump");
                ^~~~~~~~~~~~~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.h:214:15: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        virtual void draw(sf::RenderWindow* render_window);
                     ^
/Users/naymapl/supermariohd/source/GameEngine.h:159:15: note: overridden virtual function is here
        virtual void draw(sf::RenderWindow* window);
                     ^
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:4:
/Users/naymapl/supermariohd/source/Enemies.h:18:7: warning: 'update' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        void update(int delta_time);
             ^
/Users/naymapl/supermariohd/source/GameEngine.h:149:15: note: overridden virtual function is here
        virtual void update(int delta_time);
                     ^
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:4:
/Users/naymapl/supermariohd/source/Enemies.h:103:8: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        void  draw(sf::RenderWindow* render_window);
              ^
/Users/naymapl/supermariohd/source/GameEngine.h:159:15: note: overridden virtual function is here
        virtual void draw(sf::RenderWindow* window);
                     ^
/Users/naymapl/supermariohd/source/Blocks.cpp:108:25: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
                 m_sprite_sheet.load(*MarioGame().textureManager().get("Tiles"), Vector(0,0), {32, 32 }, 8, 12);
                                      ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:125:2: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        MarioGame().playSound("bump");
        ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:131:23: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        m_sprite_sheet.load(*MarioGame().textureManager().get("Tiles"), { { 32,0,32,32 } });
                             ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:174:4: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
                        MarioGame().playSound("breakblock");
                        ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:183:5: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
                                MarioGame().playSound("bump");
                                ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:192:23: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        m_sprite_sheet.load(*MarioGame().textureManager().get("Tiles"), { { 32,0,32,32 }, { 0,32,32,32 } });
                             ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:234:3: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
                MarioGame().playSound("bump");
                ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:255:28: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
         m_background.setTexture(*MarioGame().textureManager().get(getProperty("Picture").asString()));
                                  ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:275:17: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        auto texture = MarioGame().textureManager().get("AnimTiles");
                       ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:282:39: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        AbstractBlock::m_kicked_sprite.load(*MarioGame().textureManager().get("Tiles"), { { 0,32,32,32 } });
                                             ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:283:40: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        AbstractBlock::m_bricket_sprite.load(*MarioGame().textureManager().get("Tiles"), { { 32,0,32,32 } });
                                              ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:574:23: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        m_sprite_sheet.load(*MarioGame().textureManager().get("Items"), { { 96,0,16,16 }, { 96,16,16,-16 } });
                             ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:603:30: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        m_animator.create("twist", *MarioGame().textureManager().get("Items"), Vector(0, 84), Vector(32, 32), 4, 1, 0.01f);
                                    ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:604:30: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
        m_animator.create("shine", *MarioGame().textureManager().get("Items"), Vector(0, 116), Vector(40, 32), 5, 1, 0.01f, AnimType::forward);
                                    ^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:620:3: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
                MarioGame().playSound("coin");
                ^~~~~~~~~~~
7 warnings and 17 errors generated.
gmake[2]: *** [CMakeFiles/SuperMario.dir/build.make:76: CMakeFiles/SuperMario.dir/source/Blocks.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:140: CMakeFiles/SuperMario.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

License

Hi!

Thanks a lot for this awesome implementation! What license is the source-code under?

Thanks,
Thomas

Error with unordered_map when building with Ubuntu 16 and gcc 5.5

I am using Ubuntu 16.04 and gcc 5.5.0. When I go to cmake --build . --config Release, I get the error shown here:


[ 30%] Built target SFML
[ 61%] Built target TinyXml2
[ 65%] Building CXX object CMakeFiles/SuperMario.dir/src/Main.cpp.o
In file included from /usr/include/c++/5/bits/hashtable.h:35:0,
                 from /usr/include/c++/5/unordered_map:47,
                 from /home/Me/Desktop/supermariohd/include/GameEngine.h:10,
                 from /home/Me/Desktop/supermariohd/include/SuperMarioGame.h:4,
                 from /home/Me/Desktop/supermariohd/src/Main.cpp:1:
/usr/include/c++/5/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> >’:
/usr/include/c++/5/type_traits:137:12:   required from ‘struct std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > >’
/usr/include/c++/5/type_traits:148:38:   required from ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
/usr/include/c++/5/bits/unordered_map.h:100:66:   required from ‘class std::unordered_map<sf::Keyboard::Key, bool>’
/home/Me/Desktop/supermariohd/include/GameEngine.h:280:46:   required from here
/usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to ‘(const std::hash<sf::Keyboard::Key>) (const sf::Keyboard::Key&)’
  noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
                                  ^
In file included from /usr/include/c++/5/bits/move.h:57:0,
                 from /usr/include/c++/5/bits/stl_pair.h:59,
                 from /usr/include/c++/5/bits/stl_algobase.h:64,
                 from /usr/include/c++/5/bits/char_traits.h:39,
                 from /usr/include/c++/5/ios:40,
                 from /usr/include/c++/5/ostream:38,
                 from /home/Me/Desktop/supermariohd/build/SFML-prefix/include/SFML/System/Err.hpp:32,
                 from /home/Me/Desktop/supermariohd/build/SFML-prefix/include/SFML/System.hpp:34,
                 from /home/Me/Desktop/supermariohd/build/SFML-prefix/include/SFML/Window.hpp:32,
                 from /home/Me/Desktop/supermariohd/build/SFML-prefix/include/SFML/Graphics.hpp:32,
                 from /home/Me/Desktop/supermariohd/include/GameEngine.h:4,
                 from /home/Me/Desktop/supermariohd/include/SuperMarioGame.h:4,
                 from /home/Me/Desktop/supermariohd/src/Main.cpp:1:
/usr/include/c++/5/type_traits: In instantiation of ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’:
/usr/include/c++/5/bits/unordered_map.h:100:66:   required from ‘class std::unordered_map<sf::Keyboard::Key, bool>’
/home/Me/Desktop/supermariohd/include/GameEngine.h:280:46:   required from here
/usr/include/c++/5/type_traits:148:38: error: ‘value’ is not a member of ‘std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > >’
     : public integral_constant<bool, !_Pp::value>
                                      ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from /home/Me/Desktop/supermariohd/include/GameEngine.h:10,
                 from /home/Me/Desktop/supermariohd/include/SuperMarioGame.h:4,
                 from /home/Me/Desktop/supermariohd/src/Main.cpp:1:
/usr/include/c++/5/bits/unordered_map.h: In instantiation of ‘class std::unordered_map<sf::Keyboard::Key, bool>’:
/home/Me/Desktop/supermariohd/include/GameEngine.h:280:46:   required from here
/usr/include/c++/5/bits/unordered_map.h:100:66: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc>  _Hashtable;
                                                                  ^
/usr/include/c++/5/bits/unordered_map.h:107:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::key_type key_type;
                                             ^
/usr/include/c++/5/bits/unordered_map.h:108:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::value_type value_type;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:109:48: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::mapped_type mapped_type;
                                                ^
/usr/include/c++/5/bits/unordered_map.h:110:43: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::hasher hasher;
                                           ^
/usr/include/c++/5/bits/unordered_map.h:111:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::key_equal key_equal;
                                              ^
/usr/include/c++/5/bits/unordered_map.h:112:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::allocator_type allocator_type;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:117:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::pointer  pointer;
                                             ^
/usr/include/c++/5/bits/unordered_map.h:118:50: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::const_pointer const_pointer;
                                                  ^
/usr/include/c++/5/bits/unordered_map.h:119:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::reference  reference;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:120:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::const_reference const_reference;
                                                    ^
/usr/include/c++/5/bits/unordered_map.h:121:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::iterator  iterator;
                                              ^
/usr/include/c++/5/bits/unordered_map.h:122:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::const_iterator const_iterator;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:123:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::local_iterator local_iterator;
                                                   ^
/usr/include/c++/5/bits/unordered_map.h:124:57: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::const_local_iterator const_local_iterator;
                                                         ^
/usr/include/c++/5/bits/unordered_map.h:125:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::size_type  size_type;
                                               ^
/usr/include/c++/5/bits/unordered_map.h:126:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       typedef typename _Hashtable::difference_type difference_type;
                                                    ^
/usr/include/c++/5/bits/unordered_map.h:280:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       operator=(initializer_list<value_type> __l)
       ^
/usr/include/c++/5/bits/unordered_map.h:379:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
  emplace(_Args&&... __args)
  ^
/usr/include/c++/5/bits/unordered_map.h:432:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       insert(const value_type& __x)
       ^
/usr/include/c++/5/bits/unordered_map.h:439:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
  insert(_Pair&& __x)
  ^
/usr/include/c++/5/bits/unordered_map.h:499:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       insert(initializer_list<value_type> __l)
       ^
/usr/include/c++/5/bits/unordered_map.h:645:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       equal_range(const key_type& __x)
       ^
/usr/include/c++/5/bits/unordered_map.h:649:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<sf::Keyboard::Key> >, std::__detail::__is_noexcept_hash<sf::Keyboard::Key, std::hash<sf::Keyboard::Key> > > >’
       equal_range(const key_type& __x) const
       ^
CMakeFiles/SuperMario.dir/build.make:62: recipe for target 'CMakeFiles/SuperMario.dir/src/Main.cpp.o' failed
make[2]: *** [CMakeFiles/SuperMario.dir/src/Main.cpp.o] Error 1
CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/SuperMario.dir/all' failed
make[1]: *** [CMakeFiles/SuperMario.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Why is this? I did some reading online and it seemed either the problem is that the version of gcc is not updated, or I need to change unordered_map to map?

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.