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

 

Compiling the Example

To compile the grid example, you should first copy example/vas/grid to a new location. The file Makefile.template is a sample Makefile for building the example program. Copy it to Makefile and edit it to set INSTALL_DIR to the root of the Shore installation directory ($SHROOT). Then run make. You should see something like this:

    SHROOT/rpcgen msg.x
    rm -f msg_svc.c
    SHROOT/rpcgen  -m -o msg_svc.c msg.x 

    g++ -g -O -I/p/shore/installed.new/nodebug/include -Wall
	      -fno-implicit-templates -c grid.C

    ...

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.



Marvin Solomon
Fri Aug 2 13:40:14 CDT 1996