PDA

View Full Version : fork it



overtime
December 2nd, 2008, 02:26 AM
How do i fork in Dev C++?

What do i have to #include in order for the fork to work?

snova
December 2nd, 2008, 03:21 AM
I have doubts that this will be possible at all. DevC++ knows nothing but Windows, which does not (to my knowledge) have the fork() system call, rather something different.

Either use a Linux-aware IDE, or just a simple text editor even.

The header, I think, is unistd.h.

SeanHodges
December 3rd, 2008, 11:10 AM
For instructions on how to fork, see this:

http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html

DevC++ should allow you to type code for forking, just like any IDE or text editor would... I assume you're using DevC++ for Linux (http://freshmeat.net/projects/dev-cpp/)?