[pgrouting-dev] OSX build error
Stephen Woodbridge
woodbri at swoodbridge.com
Tue May 28 13:07:39 PDT 2013
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
More information about the pgrouting-dev
mailing list