title: C++ - Problem Undefined Reference to PCM::getInstance()
body: <p>Before i ask a new question, i have read few or more question about this, but i keep confuse.</p>
  <p>I Compile my program with :</p>
  <blockquote>
  <p>g++ -std=c++11 -Wall -O3 -fopenmp main.cpp -o main -D WITH_COUNTER -I /usr/local/src/pcm -L /usr/local/src/pcm -L /usr/local/lib</p>
  </blockquote>
  <p>Then, i found the error :</p>
  <blockquote>
  <p>main.cpp:(.text.startup+0x27e): undefined reference to PCM::getInstance()</p>
  <p>main.cpp:(.text.startup+0x289): undefined reference to PCM::resetPMU()</p>
  <p>main.cpp:(.text.startup+0x310): undefined reference to PCM::program(PCM::ProgramMode, void const*)</p>
  </blockquote>
  <p>So, can anyone explain to me how to solve this?</p>