title: Setting breakpoint on a class's member function in a file
body: <pre><code>(gdb) b breakpoints.cpp:X::X()
  
  Can't find member of namespace, class, struct, or union named "breakpoints.cpp:X::X"
  Hint: try 'breakpoints.cpp:X::X()&lt;TAB&gt; or 'breakpoints.cpp:X::X()&lt;ESC-?&gt;
  (Note leading single quote.)
  Make breakpoint pending on future shared library load? (y or [n]) n
  </code></pre>
  
  <p>on the following code: </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;iostream&gt;
  
  class X
  {
      public:
          X   () 
          {
              std :: cout &lt;&lt; "\nIn the default constructor";
          }
  
          X   (int) 
          {
              std :: cout &lt;&lt; "\nIn the parameterized constructor";
          }
  
          ~X () {}
  };
  
  int main (int argc, char *argv[])
  {
      X xObjA;
      X xObjB (11);
  
      while (--argc &gt; 0)
      {
          printf("\n%s ", argv [argc]);
      }
      std :: cout &lt;&lt; std :: endl &lt;&lt; std :: endl;
  }
  </code></pre>
  
  <p>File's name is: breakpoints.cpp</p>
  
  <p>What's the point that I am missing?</p>