Re: ld can't find libraries

2004-03-31 Thread Edwin Groothuis
On Wed, Mar 31, 2004 at 10:12:23PM +, Richard Bradley wrote: > I can't get ld to recognise some "so" libraries without using the -L option: Ldconfig is used for run-time loading of shared libraries. What you are doing here is the compilation (linking...) of the source to a executable. gcc (ld

Re: ld can't find libraries

2004-03-31 Thread Tim Kientzle
Richard Bradley wrote: I can't get ld to recognise some "so" libraries without using the -L option: %gcc test.c -lsqlite /usr/bin/ld: cannot find -lsqlite %gcc test.c -L/usr/local/lib -lsqlite However, /usr/local/lib is in its search path: %ldconfig -r | grep sql ldconfig has nothing to do with

Re: ld can't find libraries

2004-03-31 Thread jason
Richard Bradley wrote: 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 fin

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 -