Should be a simple question. I code mainly for *nix, tho now starting to port a lot of m code to win32. I wrote this code that basically binds a port to a shell in *nix, so now I'm getting it to work on win32. So far, everythings fine, as I've done this a few times now. But in the *nix code, I call fork() a couple times, as I do with setpgrp(). When I compile this in win32, I get the following error: undefined reference to _fork (same with setpgrp).. How come? Do I need to do a #define _fork fork?
Thanks
-Merl