Hi Stephen, I would at least like to see how you call TSQLServer::Connect(). Also I assume you can connect to the MySql database via the mysql command line tool? Cheers, Fons. On Fri, Nov 17, 2000 at 12:54:51AM +0000, Stephen A. Fuqua wrote: > Good evening, > > Being a relatively new C++ programmer, perhaps I am missing something > obvious. Can anyone see anthing missing here?... > > THE PROBLEM: I have a compiled program that seg faults when I call > TSQLServer *db = TSQLServer::Connect(sqlServer, sqlUser, sqlPwd). All > three variables have been declared as const char* and are properly > initialized. > > I have properly included TSQLServer.h, and I link against libMySQL.so > that comes with the ROOT MySQL package. I have also tried linking to > libmysqlclient.so and including MySQLServer.h. The program compiles > correctly and runs up until the point of this call (including calls to > the ROOT TString class). > > If seeing the source will help you help me, I'll gladly show it to > you... > > Thanks in advance, > > > Stephen A. Fuqua > > sfuqua@hep.utexas.edu // High Energy Physics Lab > Research Assistant // University of Texas at Austin > ph: 512.475.8673 // http://www.hep.utexas.edu/~sfuqua -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET