title: Operator ( == ) overloading error
body: <p>So, I'm working on a flowchart project(OOP), and I need to implement a condition for the GUI to let the user DrawConnector, but the "Connector" has a condition is to be drawn only when you have 2 other "Shapes" (Diamond/Rectangl/Etc.).</p>
  
  <p>So this is the Connector Class.h</p>
  
  <pre><code>    class Connector
  {
  protected :
      Point start;
      Point end;
      Statement *St;
      bool DrawCondition;
      bool DelCondition;
  public :
      Connector();
      virtual void setStart(Point S); //Not a condition to be virtuals
      virtual void setEnd(Point E);
      virtual void DrawConnector(Output* pOut);
      //virtual bool setDrawCondition ();
      friend bool operator == (Point P, Point T);
  };
  </code></pre>
  
  <p>I actually want to "setStart" and "setEnd" by the values user "Clicks" on mouse -during runtime- and check after that if these points are to be on a shape, so it draws the connector, if not, then nothing happens.</p>
  
  <pre><code>void Connector::setStart(Point S)
  {
      if (S == St-&gt;getPoint())
          {start = S;}
      else return;
  }
  
  void Connector::DrawConnector(Output *pOut)
  {
      /*if (DrawCondition == true)*/
          pOut-&gt;DrawConnector(start.x,start.y,end.x,end.y);
  }
  </code></pre>
  
  <p>You can notice I overloaded the operator " == " to check for the points if they're EVEN read ... but it ends up giving me this compilation error !</p>
  
  <blockquote>
    <p>Error 3   error LNK2019: unresolved external symbol "bool __cdecl operator==(struct Point,struct Point)" (??8@YA_NUPoint@@0@Z) referenced in function "public: virtual void __thiscall Connector::setStart(struct Point)" (?setStart@Connector@@UAEXUPoint@@@Z)   C:\Users\Cereal Killer\Downloads\Phase1-Code\Phase1-Code\Connector.obj</p>
  </blockquote>
  
  <p><strong><em>EDIT</em></strong></p>
  
  <p>Sorry guys, I forgot to mention I ALREADY defined the overloading in another file but I guess that was the problem, but why, isn't it a "GLOBAL FUNCTION" ?</p>
  
  <p>Here's the def. :</p>
  
  <pre><code>bool operator == (Point P, Point T)
  {
      if ( (P.x == T.x) &amp;&amp; (P.y == T.y) )
          return true;
      else return false;
  }
  </code></pre>
  
  <p>One more thing, if I want to check that the given POINT is ON the SHAPE from the GUI shapes "DrawRectangle, DrawCircle, etc." How can I "trace the points that drawed the shape" ? Or is there another way ?</p>