So, I am developing my project in Eclipse in Ubuntu 10.04. I have the following lines of code:
#include <pty.h> pid_t pid; int master; pid = forkpty(&master, NULL, NULL, NULL);
But when I try to build it in Eclipse, I get an error:
undefined reference to 'forkpty'
Any idea how to solve this problem?
c ++ linker
Hank
source share