{"id":485,"date":"2010-05-20T19:55:18","date_gmt":"2010-05-21T01:55:18","guid":{"rendered":"http:\/\/www.ourada.org\/blog\/?p=485"},"modified":"2010-05-20T19:55:18","modified_gmt":"2010-05-21T01:55:18","slug":"c-error-messages","status":"publish","type":"post","link":"https:\/\/www.ourada.org\/blog\/archives\/485","title":{"rendered":"C++ error messages"},"content":{"rendered":"<p>OK, one thing I don&#8217;t miss about C++ is the error messages. Here&#8217;s an incredibly obtuse way to say something:<\/p>\n<pre>In file included from \/usr\/include\/c++\/4.4\/bits\/stl_algobase.h:67,\n                 from \/usr\/include\/c++\/4.4\/bits\/char_traits.h:41,\n                 from \/usr\/include\/c++\/4.4\/ios:41,\n                 from \/usr\/include\/c++\/4.4\/ostream:40,\n                 from \/usr\/include\/c++\/4.4\/iostream:40,\n                 from ..\/src\/Flipper.cpp:1:\n\/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h: In instantiation of \u2018std::iterator_traits<cgal ::Point_2<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double> > > >\u2019:\n\/usr\/include\/CGAL\/centroid.h:833:   instantiated from \u2018CGAL::CGALi::Dispatch_centroid<\/cgal><cgal ::Point_2<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double> > >, CGAL::Point_2<\/cgal><cgal ::Filtered_kernel<CGAL::Simple_cartesian<double> > > >\u2019\n..\/src\/Flipper.cpp:102:   instantiated from here\n\/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h:127: error: no type named \u2018iterator_category\u2019 in \u2018class CGAL::Point_2<\/cgal><cgal ::Filtered_kernel<CGAL::Simple_cartesian<double> > >\u2019\n\/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h:128: error: no type named \u2018value_type\u2019 in \u2018class CGAL::Point_2<\/cgal><cgal ::Filtered_kernel<CGAL::Simple_cartesian<double> > >\u2019\n\/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h:129: error: no type named \u2018difference_type\u2019 in \u2018class CGAL::Point_2<\/cgal><cgal ::Filtered_kernel<CGAL::Simple_cartesian<double> > >\u2019\n\/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h:130: error: no type named \u2018pointer\u2019 in \u2018class CGAL::Point_2<\/cgal><cgal ::Filtered_kernel<CGAL::Simple_cartesian<double> > >\u2019\n\/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h:131: error: no type named \u2018reference\u2019 in \u2018class CGAL::Point_2<\/cgal><cgal ::Filtered_kernel<CGAL::Simple_cartesian<double> > >\u2019<\/cgal><\/pre>\n<p>Translation: you don&#8217;t need to include &#8216;centroid.h&#8217;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK, one thing I don&#8217;t miss about C++ is the error messages. Here&#8217;s an incredibly obtuse way to say something: In file included from \/usr\/include\/c++\/4.4\/bits\/stl_algobase.h:67, from \/usr\/include\/c++\/4.4\/bits\/char_traits.h:41, from \/usr\/include\/c++\/4.4\/ios:41, from \/usr\/include\/c++\/4.4\/ostream:40, from \/usr\/include\/c++\/4.4\/iostream:40, from ..\/src\/Flipper.cpp:1: \/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h: In instantiation of \u2018std::iterator_traits\u2019: \/usr\/include\/CGAL\/centroid.h:833: instantiated from \u2018CGAL::CGALi::Dispatch_centroid\u2019 ..\/src\/Flipper.cpp:102: instantiated from here \/usr\/include\/c++\/4.4\/bits\/stl_iterator_base_types.h:127: error: no type named \u2018iterator_category\u2019 in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-485","post","type-post","status-publish","format-standard","hentry","category-general","author-admin"],"_links":{"self":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":0,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}