title: undefined reference to 'uuid_generate' even though I use -luuid
body: <p>My test.cpp</p>
  
  <pre><code>#include &lt;uuid/uuid.h&gt;
  #include &lt;iostream&gt;
  
  int main(int argc, char *argv[])
  {
    uuid_t id;
    uuid_generate(id);
  
    char *string = new char[100];
    uuid_unparse(id, string);
  
    std::cout &lt;&lt; string &lt;&lt; std::endl;
  
    return 0;
  }
  </code></pre>
  
  <p>I am using Ubuntu 14</p>
  
  <p>I am running my test.cpp as ...</p>
  
  <pre><code>g++ -luuid test.cpp
  </code></pre>
  
  <p>and the output</p>
  
  <pre><code>test.cpp:(.text+0x26): undefined reference to `uuid_generate'
  test.cpp:(.text+0x47): undefined reference to `uuid_unparse'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>My g++ version:</p>
  
  <pre><code>Target: x86_64-linux-gnu
  gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
  </code></pre>
  
  <p>and I already have uuid-dev installed.</p>
  
  <pre><code>sudo apt-get install uuid uuid-dev
  
  uuid is already the newest version.
  uuid-dev is already the newest version.
  </code></pre>