### Segmentation fault at qsort’s compare functor

I have the following struct, composed by a pointer to the next Point (nextPoint), the point’s height (realHeight) and a 3D coordinate (point) from the OpenCV library, which has 3 parameters (x,y,z) : typedef struct _cloudPoint { double realHeight; cv::Point3f point; _cloudPoint* nextPoint; } cloudPoint; And then, I need to sort a vector of cloudPoint,…

Details