[pgrouting-dev] OSX build error

Stephen Woodbridge woodbri at swoodbridge.com
Tue May 28 13:11:46 PDT 2013


Actually, it looks like there are two occurances that need to be changed.

-Steve

On 5/28/2013 4:07 PM, Stephen Woodbridge wrote:
> On 5/28/2013 3:51 PM, Alec Gosse wrote:
>> Hello,
>>
>> I just pulled the latest in the sew_devel_2-0 branch and got the
>> following compiler error under Mac 10.8.
>>
>> /usr/local/src/pgrouting_main/src/kdijkstra/src/k_targets_boost_wrapper.cpp:341:26:
>> error: variable length array of non-POD element type
>>        'vector<int>'
>>      vector<int> path_vect[nb_targets];
>>
>> I can confirm that this does not occur on my Ubuntu machine.
>
> Hi Alec,
>
> I'm not very good with C++, but as a guess, can you edit that line 341
> and change it from:
>
> vector<int> path_vect[nb_targets];
>
> to:
>
> std::vector<int> path_vect[nb_targets];
>
>
> And let me know if that fixes your compile problem.
>
> Thanks,
>    -Steve
> _______________________________________________
> pgrouting-dev mailing list
> pgrouting-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-dev



More information about the pgrouting-dev mailing list