Closed spacedman closed 12 years ago
Fixed! To get this to compile for me, I needed to add #include
Did you have to add #include
Yes, I had to #include <algorithm>
(with angle-brackets - github thought I was putting an HTML tag in!)
Aha. Yes, now I see that Github removed that part in my comment as well. I've added it to the definitions. Now it should compile without problems :-).
Copying definitions.h to Definitions.h to fix previous issue, and then compiling gives:
$ make -f Makefile.linux c++ -Wall -O3 -frounding-math -fno-strict-aliasing -I/usr/include/gdal -L/usr/lib -c PolygonHandle.cpp PolygonHandle.cpp: In member function ‘bool MultiPolygonHandle::hasHandle(PolygonHandle_)’: PolygonHandle.cpp:242: error: no matching function for call to ‘find(std::_Listiterator<PolygonHandle>, std::_Listiterator<PolygonHandle*>, PolygonHandle&)’ make: _\ [PolygonHandle.o] Error 1
My C++ skills don't help here, I have no idea...
Ubuntu 10.04
All the other .o files in the Makefile compile okay, example:
$ make PlanarPartition.o g++ -c -o PlanarPartition.o PlanarPartition.cpp