title: extern on a static function in C++
body: <p>I don't know why this is driving me nuts but it is. I have a function defined and forward declared in main.</p>
  
  <pre><code>static void myFunc(int x);
  
  static void myFunc( int x)
  {
     //do stuff
  }
  
  main()
  </code></pre>
  
  <p>I want to use myFunc(int x) in another class. So I would think all I have to do is
  extern static void myFunc(int x) within that classes header and then just call it where I need to in the class definition, but it won't work.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>