tudelft3d/pprepair

compilation fail

spacedman opened this issue · 4 comments

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::List_iterator<PolygonHandle>, std::List_iterator<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

Fixed! To get this to compile for me, I needed to add #include to the stgart of PolygonHandle.cpp - perhaps my STL is older or something...

Did you have to add #include ? Or was it something else?
I was sure it was added in CGAL already, but I'll add it to make sure. It doesn't hurt.
Thanks for the bug reports!

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 :-).