title: undefined reference to `forkpty'
body: <p>So I'm developing my project in Eclipse in Ubuntu 10.04. I have the following lines of code:</p>
  
  <pre><code>#include &lt;pty.h&gt;
  
  pid_t pid;
  int master;
  
  pid = forkpty(&amp;master, NULL, NULL, NULL);
  </code></pre>
  
  <p>But when I try to build it within Eclipse, I get the error:</p>
  
  <pre><code>undefined reference to 'forkpty'
  </code></pre>
  
  <p>Any idea how to solve this problem?</p>