next up previous contents
Next: Running the Example Up: Writing Value-Added Servers with Manager Previous: Implementing Clients

 

Compiling the Example

The Shore documentation release contains the source code for the examples in this tutorial. Assuming you have fetched and unpacked the documentation release as described in the Shore Software Installation Manual , you will have a directory $SHROOT/examples, where $SHROOT is the root directory of the documentation relase.

    mkdir grid
    cp -R $SHROOT/examples/vas/grid/* grid
    cd grid
    make all

You should see something like this:

    cp /usr/local/shore/include/ShoreConfig.h .
    /usr/local/shore/bin/rpcgen msg.x
    rm -f msg_svc.c
    /usr/local/shore/bin/rpcgen -m -o msg_svc.c msg.x
    g++ -g -I/usr/local/shore/include   -c grid.C 
    g++ -g -I/usr/local/shore/include   -c rpc_thread.C 
    g++ -g -I/usr/local/shore/include   -c server.C 
    g++ -g -I/usr/local/shore/include   -c command_server.C 
    g++ -g -I/usr/local/shore/include   -c server_stubs.C 
    g++ -g -I/usr/local/shore/include   -c options.C 
    g++ -g -I/usr/local/shore/include   -c command.C 
    g++ -g -I/usr/local/shore/include   -c grid_basics.C 
    gcc -g -traditional   -c msg_xdr.c 
    gcc -g -traditional   -c msg_svc.c 
    g++ -g -I/usr/local/shore/include    -o server msg_svc.o grid.o \
        rpc_thread.o server.o command_server.o server_stubs.o options.o \
        command.o grid_basics.o msg_xdr.o /usr/local/shore/lib/libsm.a \
        /usr/local/shore/lib/libshorecommon.a -lnsl
    g++ -g -I/usr/local/shore/include   -c client.C 
    g++ -g -I/usr/local/shore/include   -c command_client.C 
    gcc -g -traditional   -c msg_clnt.c 
    g++ -g -I/usr/local/shore/include    -o client client.o \
        command_client.o options.o command.o grid_basics.o msg_clnt.o \
        msg_xdr.o /usr/local/shore/lib/libshorecommon.a -lnsl

Notice that the modified rpcgen shipped with Shore is used by default. When the compilation is complete, you should have a two executables, server and client.



This page was generated from LaTeX sources
8/9/1997