RPC-Remote Procedure Call

Submitted by rajesh_palanichamy
on November 21, 2007 - 2:23am

#include
#include
main (int argc, char **argv)
{
int num;
if (argc != 2)
{
fprintf (stderr, "usage: rnusers hostname \n");
exit (1);

}
if ((num = rnusers (argv[1])) < 0)
{
fprintf (stderr, "error: rnusers \n");
exit (-1);
}
printf ("%d users on %s\n", num, argv[1]);
exit (0);

}

compile cc rpc1.c -lrpcsvc
still i getting error

rpc1.c:(.text+0x5c): undefined reference to `rnusers'
collect2: ld returned 1 exit status
anyone can help me