I am trying to follow a tutorial on using rpcgen. I am new to the C language so I'm just trying to follow exactly as the tutorial says. Please see http://www.cs.cf.ac.uk/Dave/C/node34.html
When I get up to "cc msg_proc.c msg_svc.c -o msg_server -lnsl " i get the following error:
msg_proc.c:11: error: conflicting types for printmessage_1
msg.h:22: error: previous declaration of printmessage_1 was here
Can anybody tell me what I might be doing wrong? I have copied the code exactly from the website.
If its relevant I am using Ubuntu 8.04