Re: [ROOT] mySQL Interface Question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Oct 05 2001 - 08:04:55 MEST


Hi Jon,

To use TSQLServer you must link dynamically with the shared lib first:
   gSystem->Load("libMySQL");

Rene Brun

Jon Gans wrote:
> 
> I am trying to follow the interface you described on the web, and the
> first line does work:
> 
> CINT/ROOT C/C++ Interpreter version 5.14.79, Feb 24 2001
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TSQLServer *db = TSQLServer::Connect("mysql://foo.bar")
> Error: class,struct,union or type $TSQLServer not defined
> FILE:/tmp/file8LncMW_cint LINE:1
> Error: No symbol TSQLServer::Connect() in current scope
> FILE:/tmp/file8LncMW_cint LINE:1
> *** Interpreter error recovered ***
> 
> I don't understand why there is that dollor sign, $, in front.
> 
> Thanks
>  jon



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET