beta distribution

Peter Gerwinski peter at
Tue Jul 4 18:39:03 CEST 2000

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,


-- - G-N-U GmbH:
Maintainer GNU Pascal - - gpc-19990118
GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422
keys: - AntiSpam:

More information about the Gpc mailing list