Nathalie Jarosz wrote:
gcc -O2 -o tstbot tstbot.c -lrandlib
[...] Undefined first referenced symbol in file log /usr/local/lib/librandlib.a(randlib.o) pow /usr/local/lib/librandlib.a(randlib.o) sqrt /usr/local/lib/librandlib.a(randlib.o) exp /usr/local/lib/librandlib.a(randlib.o) ld: fatal: Symbol referencing errors. No output written to tstbot
Please add `-lm' ("link the math library") to the command line:
gcc -O2 -o tstbot tstbot.c -lrandlib -lm
This is only necessary when compiling C source; when compiling Pascal source, the math library is linked automatically.
Hope this helps,
Peter