title: stringcomp: reference to non-static member function must be called
body: <p>I just switched from C to C++, while everything was fairly easy in C(compared to C++). I migrated my program of sorting command line arguments in c to c++(i.e made classes and stuff) and now I am having this error when I try to run it. 
  It is not able to find the reference for the function <strong>stringcomp</strong>. Can anyone help how to correct it ?
  This question may be basic, so pardon my newness to c++. </p>
  
  <p>PS: Par is my class Name</p>
  
  <pre><code>void Par :: sort()
  {
  
      int i;
      char *s[size-1];
  
  
      /* assign each argument to a pointer */
      for (i = 1; i &lt; size; i++)
          s[i-1] = argNew[i];
  
      qsort (s, size - 1, sizeof *s, stringcomp);//It yeilds an error here
  
  
      for (i = 1; i &lt; size; i++)
      {
         argNew[i] = s[i-1];
      }
  
   }
  
  void Par :: parse(char **argv, int argc)
  {
  setArgs(argv, argc);
  sortArgs();
  }
  
  int Par:: stringcomp (const void *x, const void *y)
  {
     return strcmp (*(char * const *)x, *(char * const *)y);
  }
  </code></pre>