title: undefined reference to Class::method()
body: <p>I'm using a framework called <a href="http://root.cern.ch/drupal/" rel="nofollow">ROOT</a> in my code, ROOT provides a large amount of libs, between then there is <a href="http://root.cern.ch/drupal/content/proof" rel="nofollow">PROOF</a> which should allow my code run in parallel.</p>
  
  <p>Should be defined in <a href="http://root.cern.ch/root/html/TProof.html#TProof%3aOpen" rel="nofollow">TProof.h</a> a static method <code>Open</code> that starts the parallel environment. I'm using this method as the following:</p>
  
  <pre>
  //usual includes (including ROOT's)
  #include 
  //lots of code
  int main(int argc, const char *argv[])   {
      //Initialization code
      TProof *p = TProof::Open("");
      // more code
      return 0;
  }
  </pre>
  
  <p>g++ gives me this error:</p>
  
  <pre><code>mini2.o: In function `main':
  /path/to/file/name.cxx:279: undefined reference to `TProof::Open(char const*, char const*, char const*, int)'
  </code></pre>
  
  <p>ROOT provides a script that prints all the necessary flags to compile and <strong>link</strong> its libs, I'm using those flags, in this case:</p>
  
  <pre><code>$ root-config --libs
  -L/my/path/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic
  </code></pre>
  
  <p>What I'm doing wrong? How can I solve it?</p>