Due to some trickery used in FM 2.0 to implement streaming messages,
FM programs must be run through a special preprocessor,
streamify, before being passed to the C compiler. The usage is:
streamify [cpp options] source > target
streamify is typically used as follows:
% streamify myprogram.c > myprogram-streamed.c
% gcc -o myprogram myprogram-streamed.c \
-I$FM_HOME/include -L$FM_HOME/lib -L$MYRI_HOME/lib/sparc_solaris \
-DSPARC_SOLARIS -lFM32 -lLanaiDevice -lbfd -liberty
% rm myprogram-streamed.c
Note that for the above to work, the environment variable
MYRI_HOME must be setenv'ed to the top level of your
Myricom software distribution and that `$FM_HOME/bin' should be in
your path. Also, note that the FM header files expect
`arch_OS' to be defined (hence, the
`-DSPARC_SOLARIS' in the above compile line). The `Makefile's
supplied with FM automatically define this, though.
Go to the first, previous, next, last section, table of contents.