Re: argc argv

From: seforo mohlalisi <seforomohlalisi_at_yahoo.co.uk>
Date: Wed, 28 May 2008 12:31:48 +0000


But then when I do that I get an error that Error: Function passParameters("parameter1","parameter2") is not defined in current scope

Regards,

Seforo Mohlalisi

Cell: +27 79 226 3682

Emails: seforo_at_gmail.com seforomohlalisi_at_yahoo.co.uk

HI Seforo,

&gt; I have a file named passParameters.cxx and in it main function is defined
&gt; int main(int argc, const char **argv)
&gt; {
&gt; &amp;nbsp;&amp;nbsp; //code goes here
&gt; }
&gt; I can generate an executable passParameters with g++ and run as follow:
&gt; ./passParameters parameter1 pameter2 .. parametern
&gt;
&gt; How can I achieve this with ROOT?
&gt; I can compile as
&gt; root[0].L passParameters.cxx+
&gt; Then how do I pass the parameters?

Probably, you can do the following:
root[0].L passParameters.cxx
root[0]passParameters("parameter1","parameter2",....);

cheers,

-Nitesh


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Received on Wed May 28 2008 - 14:31:59 CEST

This archive was generated by hypermail 2.2.0 : Wed May 28 2008 - 17:50:02 CEST