Building Session C
nickng edited this page Apr 11, 2012
·
1 revision
-
git clone
the source code - Install ZeroMQ (2.1 or above) into
lib/
or systemlib/
directory - Install lex/yacc or compatible tools
- run
make
on toplevel - Two binaries,
bin/connmgr
andbin/parser
will be created, along with a static librarylib/libsc.a
-
connmgr
is a command-line tool for pre-generating connection configuration for a distributed Session C program. Use$ connmgr /path/to/hostfile /path/to/global/protocol connection.conf
to create connection.conf. -
parser
is a command-line interface to the scribble parser, mainly for debugging and syntax-checking. Use$ parser /path/to/scribble/file
to invoke the parser and print out a summary if parsing is successful. -
libsc.a
is the Session C runtime library, to run Session C code, make sure your linker knows where to find this file, eg.$ cc -Wall -o main main.c -L/path/to/libsc/dir -lsc -lzmq
will compile the Session C source codemain.c
.
-