Which libs to link for unistd.h?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
reakt
Posts: 22
Joined: Fri May 06, 2005 8:35 pm
Location: Basingstoke, UK

Which libs to link for unistd.h?

Post by reakt »

Hi,

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?

Thanks,
Ric
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

They are not implemented; most of them don't make much sense on the PSP anyway.
reakt
Posts: 22
Joined: Fri May 06, 2005 8:35 pm
Location: Basingstoke, UK

Post by reakt »

OK, not to worry - thanks for the quick response jim!
Post Reply