kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #07907
Re: bzr 3499 not compiling here: ‘gtlsort’ was not declared in this scope
Hi-
This is some boost weirdness. Attached patch to fix.
Thanks-
-lajos
On Tue, Apr 10, 2012 at 7:43 PM, Fabio Varesano
<fabio.varesano@xxxxxxxxx> wrote:
> Compiler(gcc version 4.7.0 20120324) output:
>
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_90_set_data.hpp:
>> In instantiation of ‘void boost::polygon::polygon_90_set_data<T>::sort()
>> const [with T = int]’:
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_45_set_data.hpp:1678:7:
>> required from ‘void
>> boost::polygon::polygon_45_set_data<Unit>::applyAdaptiveUnary_() const [with
>> int op = 0; Unit = int]’
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_45_set_data.hpp:1220:7:
>> required from ‘bool boost::polygon::polygon_45_set_data<Unit>::clean()
>> const [with Unit = int]’
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/detail/polygon_set_view.hpp:18:9:
>> required from ‘void boost::polygon::polygon_set_data<T>::clean() const
>> [with T = int]’
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_set_concept.hpp:56:7:
>> required from ‘typename boost::enable_if<typename
>> boost::polygon::gtl_and<typename
>> boost::polygon::is_mutable_polygon_set_type<polygon_set_type_1>::type,
>> typename
>> boost::polygon::is_any_polygon_set_type<polygon_set_type_2>::type>::type,
>> polygon_set_type_1>::type& boost::polygon::assign(polygon_set_type_1&, const
>> polygon_set_type_2&) [with polygon_set_type_1 =
>> boost::polygon::polygon_set_data<int>; polygon_set_type_2 =
>> std::vector<boost::polygon::polygon_data<int> >; typename
>> boost::enable_if<typename boost::polygon::gtl_and<typename
>> boost::polygon::is_mutable_polygon_set_type<polygon_set_type_1>::type,
>> typename
>> boost::polygon::is_any_polygon_set_type<polygon_set_type_2>::type>::type,
>> polygon_set_type_1>::type = boost::polygon::polygon_set_data<int>]’
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_set_concept.hpp:159:5:
>> required from ‘typename boost::enable_if<typename
>> boost::polygon::is_mutable_polygon_set_type<polygon_set_type_1>::type,
>> polygon_set_type>::type& boost::polygon::resize(polygon_set_type&,
>> coord_type, bool, int) [with polygon_set_type =
>> std::vector<boost::polygon::polygon_data<int> >; coord_type = int; typename
>> boost::enable_if<typename
>> boost::polygon::is_mutable_polygon_set_type<polygon_set_type_1>::type,
>> polygon_set_type>::type = std::vector<boost::polygon::polygon_data<int> >]’
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_set_concept.hpp:428:33:
>> required from ‘typename boost::enable_if<typename
>> boost::polygon::gtl_and_3<boost::polygon::operators::y_ps_rpe, typename
>> boost::polygon::is_mutable_polygon_set_type<polygon_set_type_1>::type,
>> typename boost::polygon::gtl_same_type<typename
>> boost::polygon::geometry_concept<T2>::type,
>> boost::polygon::coordinate_concept>::type>::type, geometry_type_1>::type&
>> boost::polygon::operators::operator+=(geometry_type_1&, coordinate_type_1)
>> [with geometry_type_1 = std::vector<boost::polygon::polygon_data<int> >;
>> coordinate_type_1 = int; typename boost::enable_if<typename
>> boost::polygon::gtl_and_3<boost::polygon::operators::y_ps_rpe, typename
>> boost::polygon::is_mutable_polygon_set_type<polygon_set_type_1>::type,
>> typename boost::polygon::gtl_same_type<typename
>> boost::polygon::geometry_concept<T2>::type,
>> boost::polygon::coordinate_concept>::type>::type, geometry_type_1>::type =
>> std::vecto
>
> r<boost::polygon::polygon_data<int> >]’
>>
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/pcbnew/board_items_to_polygon_shape_transform.cpp:195:33:
>> required from here
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_90_set_data.hpp:299:9:
>> error: ‘gtlsort’ was not declared in this scope, and no declarations were
>> found by argument-dependent lookup at the point of instantiation
>> [-fpermissive]
>> In file included from
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/detail/scan_arbitrary.hpp:13:0,
>> from
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon_set_data.hpp:929,
>> from
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/polygon.hpp:82,
>> from
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/pcbnew/./polygons_defs.h:9,
>> from
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/pcbnew/board_items_to_polygon_shape_transform.cpp:11:
>>
>> /home/fabio/Programs/kicad-arch/kicad-bzr/src/kicad/include/boost/polygon/detail/polygon_sort_adaptor.hpp:58:10:
>> note: ‘template<class iter_type, class pred_type> void
>> boost::polygon::gtlsort(iter_type, iter_type, const pred_type&)’ declared
>> here, later in the translation unit
>> make[2]: ***
>> [pcbnew/CMakeFiles/pcbnew.dir/board_items_to_polygon_shape_transform.cpp.o]
>> Error 1
>> make[1]: *** [pcbnew/CMakeFiles/pcbnew.dir/all] Error 2
>> make: *** [all] Error 2
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Attachment:
boost_fix_3499.patch
Description: Binary data
Follow ups
References