[ 1%] Building CXX object CMakeFiles/eu07.dir/Texture.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/mark/apps/games/maszyna/stdafx.h:51, from /home/mark/apps/games/maszyna/Texture.cpp:16: /usr/include/c++/5/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::__is_noexcept_hash >’: /usr/include/c++/5/type_traits:137:12: required from ‘struct std::__and_ >, std::__detail::__is_noexcept_hash > >’ /usr/include/c++/5/type_traits:148:38: required from ‘struct std::__not_ >, std::__detail::__is_noexcept_hash > > >’ /usr/include/c++/5/bits/unordered_set.h:95:63: required from ‘class std::unordered_set’ /home/mark/apps/games/maszyna/command.h:270:35: required from here /usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to ‘(const std::hash) (const user_command&)’ noexcept(declval()(declval()))> ^ 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 /usr/include/c++/5/iostream:39, from /home/mark/apps/games/maszyna/stdafx.h:40, from /home/mark/apps/games/maszyna/Texture.cpp:16: /usr/include/c++/5/type_traits: In instantiation of ‘struct std::__not_ >, std::__detail::__is_noexcept_hash > > >’: /usr/include/c++/5/bits/unordered_set.h:95:63: required from ‘class std::unordered_set’ /home/mark/apps/games/maszyna/command.h:270:35: required from here /usr/include/c++/5/type_traits:148:38: error: ‘value’ is not a member of ‘std::__and_ >, std::__detail::__is_noexcept_hash > >’ : public integral_constant ^ In file included from /usr/include/c++/5/unordered_set:48:0, from /home/mark/apps/games/maszyna/stdafx.h:53, from /home/mark/apps/games/maszyna/Texture.cpp:16: /usr/include/c++/5/bits/unordered_set.h: In instantiation of ‘class std::unordered_set’: /home/mark/apps/games/maszyna/command.h:270:35: required from here /usr/include/c++/5/bits/unordered_set.h:95:63: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; ^ /usr/include/c++/5/bits/unordered_set.h:102:45: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::key_type key_type; ^ /usr/include/c++/5/bits/unordered_set.h:103:47: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::value_type value_type; ^ /usr/include/c++/5/bits/unordered_set.h:104:43: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::hasher hasher; ^ /usr/include/c++/5/bits/unordered_set.h:105:46: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::key_equal key_equal; ^ /usr/include/c++/5/bits/unordered_set.h:106:51: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::allocator_type allocator_type; ^ /usr/include/c++/5/bits/unordered_set.h:111:45: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::pointer pointer; ^ /usr/include/c++/5/bits/unordered_set.h:112:50: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::const_pointer const_pointer; ^ /usr/include/c++/5/bits/unordered_set.h:113:47: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::reference reference; ^ /usr/include/c++/5/bits/unordered_set.h:114:52: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::const_reference const_reference; ^ /usr/include/c++/5/bits/unordered_set.h:115:46: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::iterator iterator; ^ /usr/include/c++/5/bits/unordered_set.h:116:51: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::const_iterator const_iterator; ^ /usr/include/c++/5/bits/unordered_set.h:117:51: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::local_iterator local_iterator; ^ /usr/include/c++/5/bits/unordered_set.h:118:57: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::const_local_iterator const_local_iterator; ^ /usr/include/c++/5/bits/unordered_set.h:119:47: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::size_type size_type; ^ /usr/include/c++/5/bits/unordered_set.h:120:52: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ typedef typename _Hashtable::difference_type difference_type; ^ /usr/include/c++/5/bits/unordered_set.h:274:7: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ operator=(initializer_list __l) ^ /usr/include/c++/5/bits/unordered_set.h:368:2: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ emplace(_Args&&... __args) ^ /usr/include/c++/5/bits/unordered_set.h:412:7: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ insert(const value_type& __x) ^ /usr/include/c++/5/bits/unordered_set.h:416:7: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ insert(value_type&& __x) ^ /usr/include/c++/5/bits/unordered_set.h:471:7: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ insert(initializer_list __l) ^ /usr/include/c++/5/bits/unordered_set.h:616:7: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ equal_range(const key_type& __x) ^ /usr/include/c++/5/bits/unordered_set.h:620:7: error: ‘value’ is not a member of ‘std::__not_ >, std::__detail::__is_noexcept_hash > > >’ equal_range(const key_type& __x) const ^ /home/mark/apps/games/maszyna/Texture.cpp: In member function ‘void opengl_texture::load_PNG()’: /home/mark/apps/games/maszyna/Texture.cpp:81:2: error: ‘png_image’ was not declared in this scope png_image png; ^ /home/mark/apps/games/maszyna/Texture.cpp:82:10: error: ‘png’ was not declared in this scope memset(&png, 0, sizeof(png_image)); ^ /home/mark/apps/games/maszyna/Texture.cpp:83:16: error: ‘PNG_IMAGE_VERSION’ was not declared in this scope png.version = PNG_IMAGE_VERSION; ^ /home/mark/apps/games/maszyna/Texture.cpp:85:51: error: ‘png_image_begin_read_from_file’ was not declared in this scope png_image_begin_read_from_file(&png, name.c_str()); ^ /home/mark/apps/games/maszyna/Texture.cpp:93:19: error: ‘PNG_FORMAT_FLAG_ALPHA’ was not declared in this scope if (png.format & PNG_FORMAT_FLAG_ALPHA) ^ /home/mark/apps/games/maszyna/Texture.cpp:97:16: error: ‘PNG_FORMAT_RGBA’ was not declared in this scope png.format = PNG_FORMAT_RGBA; ^ /home/mark/apps/games/maszyna/Texture.cpp:103:16: error: ‘PNG_FORMAT_RGB’ was not declared in this scope png.format = PNG_FORMAT_RGB; ^ /home/mark/apps/games/maszyna/Texture.cpp:108:32: error: ‘PNG_IMAGE_SIZE’ was not declared in this scope data.resize(PNG_IMAGE_SIZE(png)); ^ /home/mark/apps/games/maszyna/Texture.cpp:111:65: error: ‘PNG_IMAGE_PIXEL_SIZE’ was not declared in this scope (void*)&data[0], -data_width * PNG_IMAGE_PIXEL_SIZE(png.format), nullptr); ^ /home/mark/apps/games/maszyna/Texture.cpp:111:75: error: ‘png_image_finish_read’ was not declared in this scope (void*)&data[0], -data_width * PNG_IMAGE_PIXEL_SIZE(png.format), nullptr); ^ CMakeFiles/eu07.dir/build.make:62: recipe for target 'CMakeFiles/eu07.dir/Texture.cpp.o' failed make[2]: *** [CMakeFiles/eu07.dir/Texture.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/eu07.dir/all' failed make[1]: *** [CMakeFiles/eu07.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2