Hi there,
I still have the problem with example simple1.cc.=20
In original simple1.cc code, it connect to a local server. Locally, I
didn't run mysql database daemon/server because of other reason. So when
I run simple1, it should fail to connect and throw some exception, which
should be caught by one of the "catch" statements ( and I added
catch(...) which suppose to catch all uncaught exceptions ) and exit
gracely. However, it always crashes. Does mysqlcppapi throw exceptions
when it cannot connect to mysql server?
Thanks
Yigong
-----Original Message-----
From: Jonathan Wakely [mailto:co...@co...]=20
Sent: Thursday, August 05, 2004 1:16 PM
To: Liu, Yigong
Cc: mys...@li...
Subject: Re: [Mysqlcppapi-main] where to find libmysqlclient.so for
Solaris 2.8 with gcc 3.3
On Thu, Aug 05, 2004 at 11:21:58AM -0400, Liu, Yigong wrote:
> 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.
>=20
> I added con.set_Host, set_User, set_Passwd(). It still crashes. Any
> clue?
Hello again,
I'll take a look at your problems when I get home in a couple of hours.
Sorry for the delay,
jon
>=20
> I tried mysql++, at least it allows me to connect to the remote
server;
> although it has the same issue of exception handling.
>=20
> Thanks
>=20
> Yigong
>=20
>=20
> -----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
>=20
> Hi there,
>=20
> Thanks for the reply.
>=20
> 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?
>=20
> Thanks a lot
> Yigong
>=20
>=20
> -----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
>=20
> On Wed, Aug 04, 2004 at 06:09:59PM -0400, Liu, Yigong wrote:
>=20
> > Hi there, Murray and any other experts,
>=20
> Hi,
>=20
> > I am building mysqlcppapi1.9.3 on Solaris2.8 with gcc3.3.2.
Everything
> > went good until I hit "ld : cannot find -lmysqlclient."
>=20
> I assume this is when linking, not when running, the program?
>=20
> > Could you please give me some hints about where I can find it?
>=20
> On a number of systems mysql libs are installed in
${prefix}/lib/mysql/
> rather than ${prefix}/lib
>=20
> So you might want to try -L/usr/local/mysql/lib/mysql or similar.
>=20
> 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
>=20
> Hope that helps,
>=20
> jon
>=20
> --=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
>=20
>=20
>
------------------------------------------------------------------------
------------------------
> 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]
--=20
"Death to all fanatics!"
- Mal2
---------------------------------------------------------------------------=
---------------------
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]
|