In Antwort auf:
It doesn't compile, because fork() is in <unistd.h>. Once that's corrected, it certainly links. C++ is less forgiving than C of missing declarations, and thus of missing header files.


Thanks, but i wonder why gcc doesn't generate a warning like "undefined function, assuming extern returning int".