Thread: Trying to Compile RPC Client

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    47

    Trying to Compile RPC Client

    I am tring, for the first time, to compile an rpc client but I am getting a vague compile error. The rpc.x code compiles fine, the client.c code compiles, and the rpc_clnt.c compiles but when I run the final command to link and create a binary I get the error.

    Undefined first referenced
    symbol in file
    xdr_void Rpc_clnt.o

    The exact command I am using is

    cc -o Client Client.o Rpc_clnt.o

    Any ideas on what the problem could be?

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    290
    Which RPC library are you using? Are you linking the appropriate library files?

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    47
    rpc.h

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Try adding -lnsl to the end of the command line when linking.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile as you type
    By Rocketmagnet in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 12-07-2006, 01:36 PM
  2. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM
  3. TCP/IP client & echo server
    By Jordban in forum C++ Programming
    Replies: 2
    Last Post: 06-06-2005, 06:39 PM
  4. Client not receiving FD_CLOSE notification message?
    By dp_76 in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-22-2005, 11:08 PM
  5. Unicode vurses Non Unicode client server application with winsock2 query?
    By dp_76 in forum Networking/Device Communication
    Replies: 0
    Last Post: 05-16-2005, 07:26 AM