title: LibSerial: cannot access SerialStream member functions
body: <p>I am trying to do basic port programming, and it was suggested to me that I take a look at LibSerial.</p>
  
  <p>I built and installed the package, but I am having issues accessing any SerialStream member functions</p>
  
  <p>e.g. the following code (ls_ex.cpp) fails:</p>
  
  <pre><code>#include &lt;SerialStream.h&gt;
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;cstring&gt;
  #include &lt;cstdlib&gt;
  #include &lt;cstdio&gt;
  #include &lt;cerrno&gt;
  using namespace std;
  using namespace LibSerial;
  
  int main(int count, char* parms[])
  {
      if (count != 2)
          exit(1);
  
      //open port
      string fname = parms[1];
      SerialStream port(fname);
      cout &lt;&lt; port.isOpen() &lt;&lt; endl;
      port.Close();
  
      return 0;
  }
  </code></pre>
  
  <p>I am compiling it as so:</p>
  
  <pre><code>g++ -o ls_ex ls_ex.cpp /usr/local/lib/libserial.a /usr/local/lib/libserial.so
  </code></pre>
  
  <p>When I compile, I get the following error:</p>
  
  <p>ls_ex.cpp: In function ‘int main(int, char**)’:
     ls_ex.cpp:45:15: error: ‘class LibSerial::SerialStream’ has no member named ‘isOpen’</p>
  
  <p>I assume I am compiling it wrong because its easy enough to look at the code and see that isOpen() is indeed public. Also, why am I even able to instantiate SerialStream just fine but the compiler blows up when I try to call <em>any</em> member function?</p>