On Wed, Aug 04, 2004 at 06:09:59PM -0400, Liu, Yigong wrote:
> Hi there, Murray and any other experts,
Hi,
> I am building mysqlcppapi1.9.3 on Solaris2.8 with gcc3.3.2. Everything
> went good until I hit "ld : cannot find -lmysqlclient."
I assume this is when linking, not when running, the program?
> Could you please give me some hints about where I can find it?
On a number of systems mysql libs are installed in ${prefix}/lib/mysql/
rather than ${prefix}/lib
So you might want to try -L/usr/local/mysql/lib/mysql or similar.
These pages might help too:
http://dev.mysql.com/doc/mysql/en/Solaris.html
http://dev.mysql.com/doc/mysql/en/Solaris_2.7.html
http://dev.mysql.com/doc/mysql/en/Installation_layouts.html
Hope that helps,
jon
--
"More computing sins are committed in the name of efficiency
(without necessarily achieving it) than for any other single reason
- including blind stupidity."
- W.A. Wulf
|