archerabi 0 Newbie Poster

hi..i ve programming in c and c++ for a long time now...i want to implement a simple code to kind of know and get started with rpc ... i've looked at many tutorials and all have the same code for printing a msg to the console here's the link

http://docs.sun.com/app/docs/doc/816-1435/6m7rrfn7k?a=view

rpcgen and compiling the client gives no problem but compiling the server ie msg_proc.c gives this error

[root@localhost os]# cc msg_proc.c msg_svc.c -o msg_server -lnsl
msg_proc.c: In function ‘printmessage_1’:
msg_proc.c:8: error: argument ‘req’ doesn’t match prototype
msg.h:22: error: prototype declaration

i tried changing the function decalarations and all but i want to know why
that error crops up.

Thanks in advance
Abhi

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.