April Escamilla wrote:
>
> Paul,
>
> >What does "ls -l /usr/local/mysql/lib/libmysqlclient.a" tell you?
>
> -rw------- 1 dick devel 1045808 Sep 5 1998
> /usr/local/mysql/lib/libmysqlclient.a
>
This will explain why nothing will happen when you link with
-L/usr/local/mysql/lib -lmysqlclient - only user dick can read it, so
the linker fails to open the file, silently for some reason. On a side
note, I have a hard time comprehending why a publically downloadable
library should be installed with 0600 permissions. It almost makes me
laugh -:)
> also, an ls -l /u/april/mysql/libmysqlclient.a says the following:
>
> -rw-r--r-- 1 root other 1045808 Jun 9 10:20
> /u/april/mysql/libmysqlclient.a
>
I guess you should be able to link with -L/u/april/mysql -lmysqlclient
fine. Try it again. If it fails, man cc, man ld to figure out how you
can make your compiler and linker as verbose as possible, add the
necessary switches, and the post all the ugly debugging info they tell
you.
--
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)