title: GCC not finding LibSerial even with -lserial flag [Ubuntu]
body: <p>I'm trying to get LibSerial to work but I am getting some linker errors when I try to compile my app using LibSerial. The errors are as follows:</p>
  
  <pre><code>/tmp/ccnVfHa2.o: In function `main':
  index.cpp:(.text+0x26): undefined reference to `LibSerial::SerialStream::SerialStream()'
  index.cpp:(.text+0x7c): undefined reference to `LibSerial::SerialStream::Open(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::_Ios_Openmode)'
  index.cpp:(.text+0xa9): undefined reference to `LibSerial::SerialStream::Close()'
  index.cpp:(.text+0xb8): undefined reference to `LibSerial::SerialStream::~SerialStream()'
  index.cpp:(.text+0x108): undefined reference to`LibSerial::SerialStream::~SerialStream()'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>My code for a small setup app is:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;SerialStream.h&gt;
  
  using namespace LibSerial;
  
  int main() {
      SerialStream sStream;
      sStream.Open("/dev/ttyUSB0");
      sStream.Close();
  }
  </code></pre>
  
  <p>I am compiling with:</p>
  
  <pre><code>g++ -Wall -lserial index.cpp
  </code></pre>
  
  <p>But also tried:</p>
  
  <pre><code>g++ -l:libserial.so.0 index.cpp  
  </code></pre>
  
  <p>And the response from <code>dpkg -L libserial0</code> is:</p>
  
  <pre><code>/.
  /usr
  /usr/share
  /usr/share/doc
  /usr/share/doc/libserial0
  /usr/share/doc/libserial0/copyright
  /usr/share/doc/libserial0/changelog.Debian.gz
  /usr/lib
  /usr/lib/x86_64-linux-gnu
  /usr/lib/x86_64-linux-gnu/libserial.so.0.0.0
  /usr/lib/x86_64-linux-gnu/libserial.so.0
  </code></pre>
  
  <p>Thanks for taking a look!</p>