artemp/mapnik — Issue #418: quadtree.hpp in shapeindex doesn't compile in newer gcc
Author: artemp
Created: 2011-10-11 16:17:41+00:00
State: open
Labels: Core_Library

Please, include the following two lines in the head section of utils/shapeindex/quadtree.hpp:

#include [[BR]]
#include

The first one is needed because of the error:[[BR]]
quadtree.hpp: In member function ‘void quadtree::print(const quadtree_node*, int) const’:[[BR]]
quadtree.hpp:245: error: ‘clog’ is not a member of ‘std’[[BR]]
...

The second one fixes the error:[[BR]]
quadtree.hpp: In member function ‘void quadtree::write(std::ostream&)’:[[BR]]
quadtree.hpp:121: error: there are no arguments to ‘memset’ that depend on a template parameter, so a declaration of ‘memset’ must be available[[BR]]
quadtree.hpp:121: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)[[BR]]
quadtree.hpp: In member function ‘void quadtree::write_node(std::ostream&, const quadtree_node*) const’:[[BR]]
quadtree.hpp:208: error: there are no arguments to ‘memset’ that depend on a template parameter, so a declaration of ‘memset’ must be available[[BR]]
...