Not sure what you are trying to do, but fork() is a unix/linux system call. There is, as far as I know, no "join" system call. There is a wait() function that relates to fork().

Now, if you are doing this in Windows, you won't find a fork() call.

Also, you need to include the right header file, which is unistd.h in most OS's.

Edit: To slow...
You can use cygwin, or start thinking of a different solution.

--
Mats