I want to use some of the functions in unistd.h.
When I compile my program I get the error messages:
undefined reference to `getegid'
undefined reference to `getgid'
undefined reference to `pipe'
undefined reference to `dup2'
undefined reference to `setegid'
undefined reference to `execv'
These are all functions in unistd.h so I think I am missing the appropriate library. Can anyone please tell me which lib I need to link?
Infact, how do I know which libraries to link in general - is there a list somewhere?