Skip to content

Instantly share code, notes, and snippets.

@nerdinand
Created September 12, 2014 06:51
Show Gist options
  • Save nerdinand/9e8a86ad6b42f0527d89 to your computer and use it in GitHub Desktop.
Save nerdinand/9e8a86ad6b42f0527d89 to your computer and use it in GitHub Desktop.
OS X compilation errors
Scanning dependencies of target ontology_shared
[ 20%] Building CXX object ontology/CMakeFiles/ontology_shared.dir/src/Entity.cpp.o
In file included from /Users/ferdi/projects/ontology/ontology/src/Entity.cpp:8:
/Users/ferdi/projects/ontology/ontology/include/ontology/Entity.hpp:128:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif / /__ONTOLOGY_ENTITY_HPP__
^
//
In file included from /Users/ferdi/projects/ontology/ontology/src/Entity.cpp:8:
In file included from /Users/ferdi/projects/ontology/ontology/include/ontology/Entity.hpp:12:
In file included from /Users/ferdi/projects/ontology/ontology/include/ontology/TypeContainers.hpp:14:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:460:17: error: no matching function for call to object of type 'const Ontology::TypeComparator'
{return static_cast<const _Compare&>(*this)(__x.__cc.first, __y);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2102:14: note: in instantiation of member function 'std::__1::__map_value_compare<const std::type_info *, std::__1::__value_type<const std::type_info *,
std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > >, Ontology::TypeComparator, true>::operator()' requested here
if (!value_comp()(__root->__value_, __v))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2028:20: note: in instantiation of function template specialization 'std::__1::__tree<std::__1::__value_type<const std::type_info *,
std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > >, std::__1::__map_value_compare<const std::type_info *, std::__1::__value_type<const std::type_info *, std::__1::unique_ptr<Ontology::Component,
std::__1::default_delete<Ontology::Component> > >, Ontology::TypeComparator, true>, std::__1::allocator<std::__1::__value_type<const std::type_info *, std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > > >
>::__lower_bound<const std::type_info *>' requested here
iterator __p = __lower_bound(__v, __root(), __end_node());
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:1081:68: note: in instantiation of function template specialization 'std::__1::__tree<std::__1::__value_type<const std::type_info *,
std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > >, std::__1::__map_value_compare<const std::type_info *, std::__1::__value_type<const std::type_info *, std::__1::unique_ptr<Ontology::Component,
std::__1::default_delete<Ontology::Component> > >, Ontology::TypeComparator, true>, std::__1::allocator<std::__1::__value_type<const std::type_info *, std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > > > >::find<const
std::type_info *>' requested here
iterator find(const key_type& __k) {return __tree_.find(__k);}
^
/Users/ferdi/projects/ontology/ontology/src/Entity.cpp:28:27: note: in instantiation of member function 'std::__1::map<const std::type_info *, std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> >, Ontology::TypeComparator,
std::__1::allocator<std::__1::pair<const std::type_info *const, std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > > > >::find' requested here
if(m_ComponentMap.find(it) == m_ComponentMap.end())
^
/Users/ferdi/projects/ontology/ontology/include/ontology/TypeContainers.hpp:25:17: note: candidate function not viable: 'this' argument has type 'const Ontology::TypeComparator', but method is not marked const
inline bool operator()(const std::type_info* a, const std::type_info* b)
^
In file included from /Users/ferdi/projects/ontology/ontology/src/Entity.cpp:8:
In file included from /Users/ferdi/projects/ontology/ontology/include/ontology/Entity.hpp:12:
In file included from /Users/ferdi/projects/ontology/ontology/include/ontology/TypeContainers.hpp:14:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:463:17: error: no matching function for call to object of type 'const Ontology::TypeComparator'
{return static_cast<const _Compare&>(*this)(__x, __y.__cc.first);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:2029:26: note: in instantiation of member function 'std::__1::__map_value_compare<const std::type_info *, std::__1::__value_type<const std::type_info *,
std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > >, Ontology::TypeComparator, true>::operator()' requested here
if (__p != end() && !value_comp()(__v, *__p))
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:1081:68: note: in instantiation of function template specialization 'std::__1::__tree<std::__1::__value_type<const std::type_info *,
std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > >, std::__1::__map_value_compare<const std::type_info *, std::__1::__value_type<const std::type_info *, std::__1::unique_ptr<Ontology::Component,
std::__1::default_delete<Ontology::Component> > >, Ontology::TypeComparator, true>, std::__1::allocator<std::__1::__value_type<const std::type_info *, std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > > > >::find<const
std::type_info *>' requested here
iterator find(const key_type& __k) {return __tree_.find(__k);}
^
/Users/ferdi/projects/ontology/ontology/src/Entity.cpp:28:27: note: in instantiation of member function 'std::__1::map<const std::type_info *, std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> >, Ontology::TypeComparator,
std::__1::allocator<std::__1::pair<const std::type_info *const, std::__1::unique_ptr<Ontology::Component, std::__1::default_delete<Ontology::Component> > > > >::find' requested here
if(m_ComponentMap.find(it) == m_ComponentMap.end())
^
/Users/ferdi/projects/ontology/ontology/include/ontology/TypeContainers.hpp:25:17: note: candidate function not viable: 'this' argument has type 'const Ontology::TypeComparator', but method is not marked const
inline bool operator()(const std::type_info* a, const std::type_info* b)
^
1 warning and 2 errors generated.
make[2]: *** [ontology/CMakeFiles/ontology_shared.dir/src/Entity.cpp.o] Error 1
make[1]: *** [ontology/CMakeFiles/ontology_shared.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment