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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net