linking questions (how to use linux version of libc)

2004-05-01 Thread Richard Bradley
Hi, I am trying to compile a program that uses "initstate_r" from random(3) in libc. However this function only seems to exist in the linux version of libc. Compare `man 3 random` on a linux box [1] which has "initstate_r" and "initstate", whereas `man 3 random` on a FreeBSD box [2] has only

ld can't find libraries

2004-03-31 Thread Richard Bradley
Hi all, I can't get ld to recognise some "so" libraries without using the -L option: %cat test.c int main () {} %ls /usr/local/lib/libsqlite* /usr/local/lib/libsqlite.a /usr/local/lib/libsqlite.so.2 /usr/local/lib/libsqlite.so %gcc test.c -lsqlite /usr/bin/ld: cannot find -lsqlite %gcc test.c -