bool bezierVertex::compareX(const bezierVertex A, const bezierVertex B)
If you're doing it outside of the class definition:
It's not supposed to put the static keyword in the implementation of the method.
Also note that you the scope resolution operator is ::