osm2pgrouting (#24) - Bug in osm2pgroute (#230) - Message List

Bug in osm2pgroute

in the current svn head, compiling osm2pgroute in linux fails with

src/OSMDocumentParserCallback.cpp: In member function ‘virtual void osm::OSMDocumentParserCallback::StartElement(const char*, const char**)’:
src/OSMDocumentParserCallback.cpp:40: error: ‘strcmp’ was not declared in this scope

The problem is that an sting include is missing.


#include <string.h>

to src/ConfigurationParserCallback.h and src/OSMDocumentParserCallback.h solves the problem. I assume that including the file stdafx.h which is not usually available in linux was the problem.

  • Message #814

    Thank you Paul,

    Fixed and commited to SVN.