|
From: Liu, Y. <Yig...@an...> - 2004-08-05 17:05:59
|
Also for some reasons I cannot start mysql daemon locally. So I tried to
connect to a remote server with simple changes to simple1.cc.
I added con.set_Host, set_User, set_Passwd(). It still crashes. Any
clue?
I tried mysql++, at least it allows me to connect to the remote server;
although it has the same issue of exception handling.
Thanks
Yigong
-----Original Message-----
From: Liu, Yigong=20
Sent: Thursday, August 05, 2004 11:23 AM
To: 'Jonathan Wakely'
Cc: mys...@li...
Subject: RE: [Mysqlcppapi-main] where to find libmysqlclient.so for
Solaris 2.8 with gcc 3.3
Hi there,
Thanks for the reply.
Another question, I tried simple1 (the first example) and I have no
database server running locally, so it fails. However, it will crash the
whole program, not close down gracely. I check simple1.cc, although
there are catch statement for exceptions and I also add catch(...) to
catch all other exceptions, it still crashes. Does exception-handling
work in mysqlcppapi?
Thanks a lot
Yigong
-----Original Message-----
From: Jonathan Wakely [mailto:co...@co...]=20
Sent: Thursday, August 05, 2004 5:25 AM
To: Liu, Yigong
Cc: mys...@li...
Subject: Re: [Mysqlcppapi-main] where to find libmysqlclient.so for
Solaris 2.8 with gcc 3.3
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
--=20
"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
---------------------------------------------------------------------------=
---------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information. =20
If you have received it in error, please notify the sender
immediately and delete the original. Any unauthorized use of
this email is prohibited.
---------------------------------------------------------------------------=
---------------------
[mf2]
|